Skip to content

Commit

Permalink
reformating...
Browse files Browse the repository at this point in the history
  • Loading branch information
DevBefell authored Oct 8, 2020
1 parent c60cce3 commit 5020281
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
20 changes: 9 additions & 11 deletions src/main/java/me/befell/whattier/Main/Events.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

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

Expand Down
1 change: 0 additions & 1 deletion src/main/java/me/befell/whattier/Main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 0 additions & 2 deletions src/main/java/me/befell/whattier/WhatTier.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -55,7 +54,6 @@ public Logger getLogger() {

public void openMenu() {
this.openMenu = true;
logger.info(openMenu);
}

}

0 comments on commit 5020281

Please sign in to comment.