feat: don't bloat chat with toggle events

This commit is contained in:
əlemi 2023-02-15 21:44:29 +01:00
parent caf64a44f2
commit a7664f8485
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 4 additions and 3 deletions

View file

@ -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) {

View file

@ -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));
} }
} }