feat: don't bloat chat with toggle events
This commit is contained in:
parent
caf64a44f2
commit
a7664f8485
2 changed files with 4 additions and 3 deletions
|
@ -75,7 +75,10 @@ public class BoSCoVicino implements ICommons {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void log(String message) {
|
public static void log(String message) {
|
||||||
MC.gui.getChat().addMessage(new StringTextComponent(message));
|
LOGGER.info(message);
|
||||||
|
if (MC.player != null) {
|
||||||
|
MC.player.displayClientMessage(new StringTextComponent(message), true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void clientSetup(final FMLClientSetupEvent event) {
|
private void clientSetup(final FMLClientSetupEvent event) {
|
||||||
|
|
|
@ -145,7 +145,6 @@ public abstract class Module {
|
||||||
// this.enabled.save();
|
// this.enabled.save();
|
||||||
this.onEnabled();
|
this.onEnabled();
|
||||||
log(String.format("%s enabled", this.name));
|
log(String.format("%s enabled", this.name));
|
||||||
BoSCoVicino.LOGGER.info(String.format("%s enabled", this.name));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void disable() {
|
public final void disable() {
|
||||||
|
@ -154,6 +153,5 @@ public abstract class Module {
|
||||||
// this.enabled.save();
|
// this.enabled.save();
|
||||||
this.onDisabled();
|
this.onDisabled();
|
||||||
log(String.format("%s disabled", this.name));
|
log(String.format("%s disabled", this.name));
|
||||||
BoSCoVicino.LOGGER.info(String.format("%s disabled", this.name));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue