aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java
diff options
context:
space:
mode:
authorDJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>2020-10-21 21:15:01 -0400
committerDJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>2020-10-21 21:15:01 -0400
commitab4eb74fb5af37b7eaf5e9faa95debb75721d269 (patch)
treef68910a45549b5c3636228a016824a5b3e965dbe /src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java
parent3cd0d242a9a631ab7a255c81a761b9a91c6d23b5 (diff)
downloadPerspectiveModv4-ab4eb74fb5af37b7eaf5e9faa95debb75721d269.tar.gz
PerspectiveModv4-ab4eb74fb5af37b7eaf5e9faa95debb75721d269.tar.bz2
PerspectiveModv4-ab4eb74fb5af37b7eaf5e9faa95debb75721d269.zip
Bug Fixes:
- Fix spazing in and out - Now with 100% less static abuse
Diffstat (limited to 'src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java')
-rw-r--r--src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java b/src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java
index 193affb..ebdfd88 100644
--- a/src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java
+++ b/src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java
@@ -7,23 +7,23 @@ import net.minecraft.entity.Entity;
public class EntityRendererHook {
public static float rotationYawHook(Entity entity) {
- return PerspectiveMod.perspectiveToggled ? PerspectiveMod.cameraYaw : entity.rotationYaw;
+ return PerspectiveMod.instance.perspectiveToggled ? PerspectiveMod.instance.cameraYaw : entity.rotationYaw;
}
public static float prevRotationYawHook(Entity entity) {
- return PerspectiveMod.perspectiveToggled ? PerspectiveMod.cameraYaw : entity.prevRotationYaw;
+ return PerspectiveMod.instance.perspectiveToggled ? PerspectiveMod.instance.cameraYaw : entity.prevRotationYaw;
}
public static float rotationPitchHook(Entity entity) {
- return PerspectiveMod.perspectiveToggled ? PerspectiveMod.cameraPitch : entity.rotationPitch;
+ return PerspectiveMod.instance.perspectiveToggled ? PerspectiveMod.instance.cameraPitch : entity.rotationPitch;
}
public static float prevRotationPitchHook(Entity entity) {
- return PerspectiveMod.perspectiveToggled ? PerspectiveMod.cameraPitch : entity.prevRotationPitch;
+ return PerspectiveMod.instance.perspectiveToggled ? PerspectiveMod.instance.cameraPitch : entity.prevRotationPitch;
}
public static boolean mouseHook(Minecraft minecraft) {
- return PerspectiveMod.overrideMouse();
+ return PerspectiveMod.instance.overrideMouse();
}
public static double distanceHook(double value) {