diff --git a/src/main/java/me/befell/whattier/Main/Events.java b/src/main/java/me/befell/whattier/Main/Events.java index 351b889..9ed11b0 100644 --- a/src/main/java/me/befell/whattier/Main/Events.java +++ b/src/main/java/me/befell/whattier/Main/Events.java @@ -9,10 +9,8 @@ import net.minecraft.util.ChatStyle; import net.minecraft.util.EnumChatFormatting; import net.minecraftforge.common.MinecraftForge; -import net.minecraftforge.event.entity.player.PlayerSetSpawnEvent; import net.minecraftforge.event.world.WorldEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; -import net.minecraftforge.fml.common.gameevent.PlayerEvent; import net.minecraftforge.fml.common.network.FMLNetworkEvent; import org.apache.logging.log4j.Logger; @@ -63,15 +61,15 @@ public boolean ShouldRun() { @SubscribeEvent public void onWorldLoad(WorldEvent.Load e) { new Utils().Delay(() -> { - if (ShouldRun() && !registed) { - logger.info("Registering"); - registed = true; - MinecraftForge.EVENT_BUS.register(new Main(mod)); - } else if (!ShouldRun() && registed) { - registed = false; - logger.info("Unregistering"); - MinecraftForge.EVENT_BUS.unregister(new Main(mod)); - } + if (ShouldRun() && !registed) { + logger.info("Registering"); + registed = true; + MinecraftForge.EVENT_BUS.register(new Main(mod)); + } else if (!ShouldRun() && registed) { + registed = false; + logger.info("Unregistering"); + MinecraftForge.EVENT_BUS.unregister(new Main(mod)); + } }, 2); } diff --git a/src/main/java/me/befell/whattier/Main/Main.java b/src/main/java/me/befell/whattier/Main/Main.java index 52dae54..76a513c 100644 --- a/src/main/java/me/befell/whattier/Main/Main.java +++ b/src/main/java/me/befell/whattier/Main/Main.java @@ -295,7 +295,6 @@ private void renderEnchant(ItemStack item, int guiLeft, int guiTop, Slot invento int x = (int) ((guiLeft + inventorySlot.xDisplayPosition) / scaleFactor + 1); int y = (int) ((guiTop + inventorySlot.yDisplayPosition) / scaleFactor) + 1; - System.out.println(color); Minecraft.getMinecraft().fontRendererObj.drawStringWithShadow(status, x, y, color); } } \ No newline at end of file diff --git a/src/main/java/me/befell/whattier/WhatTier.java b/src/main/java/me/befell/whattier/WhatTier.java index a0c45ac..ed5b7e8 100644 --- a/src/main/java/me/befell/whattier/WhatTier.java +++ b/src/main/java/me/befell/whattier/WhatTier.java @@ -6,7 +6,6 @@ import me.befell.whattier.Main.Events; import net.minecraft.client.Minecraft; import net.minecraftforge.client.ClientCommandHandler; -import net.minecraftforge.client.event.FOVUpdateEvent; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; @@ -55,7 +54,6 @@ public Logger getLogger() { public void openMenu() { this.openMenu = true; - logger.info(openMenu); } }