aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java')
-rw-r--r--src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java7
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() {