From ab4eb74fb5af37b7eaf5e9faa95debb75721d269 Mon Sep 17 00:00:00 2001 From: DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> Date: Wed, 21 Oct 2020 21:15:01 -0400 Subject: Bug Fixes: - Fix spazing in and out - Now with 100% less static abuse --- .../perspectivemod/asm/hooks/EntityRendererHook.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/me/djtheredstoner/perspectivemod/asm/hooks/EntityRendererHook.java') 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) { -- cgit