From ae2ea9373b8b7cdd1530062d0a42b615f9b94ce3 Mon Sep 17 00:00:00 2001 From: DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> Date: Thu, 15 Jul 2021 20:40:07 -0400 Subject: Update to Essential --- src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java') diff --git a/src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java b/src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java index dd48d4c..9374d1e 100644 --- a/src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java +++ b/src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java @@ -40,12 +40,11 @@ public class PerspectiveMod { @Mod.EventHandler public void init(FMLInitializationEvent event) { - ModCoreInstaller.initializeModCore(Minecraft.getMinecraft().mcDataDir); - config.preload(); ClientRegistry.registerKeyBinding(perspectiveKey); - ClientCommandHandler.instance.registerCommand(new PerspectiveModCommand()); + new PerspectiveModCommand("perspectivemod").register(); + new PerspectiveModCommand("pmod").register(); MinecraftForge.EVENT_BUS.register(this); } @@ -83,6 +82,7 @@ public class PerspectiveMod { } else { enterPerspective(); } + mc.renderGlobal.setDisplayListEntitiesDirty(); } else if (config.holdMode) { resetPerspective(); } @@ -100,6 +100,7 @@ public class PerspectiveMod { public void resetPerspective() { perspectiveToggled = false; mc.gameSettings.thirdPersonView = previousPerspective; + mc.renderGlobal.setDisplayListEntitiesDirty(); } public boolean overrideMouse() { -- cgit