diff options
author | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2021-07-15 20:40:07 -0400 |
---|---|---|
committer | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2021-07-15 20:40:07 -0400 |
commit | ae2ea9373b8b7cdd1530062d0a42b615f9b94ce3 (patch) | |
tree | 412f69c50d572089d12d2e57f483a91ea5de15dd /src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java | |
parent | 7a42b12aa3bbb389dd1cdc9c1bd2d81b8a4da2bb (diff) | |
download | PerspectiveModv4-ae2ea9373b8b7cdd1530062d0a42b615f9b94ce3.tar.gz PerspectiveModv4-ae2ea9373b8b7cdd1530062d0a42b615f9b94ce3.tar.bz2 PerspectiveModv4-ae2ea9373b8b7cdd1530062d0a42b615f9b94ce3.zip |
Update to Essential
Diffstat (limited to 'src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java')
-rw-r--r-- | src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java | 7 |
1 files changed, 4 insertions, 3 deletions
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() { |