From 7a7766c20fe331634404f514f14a14d57da69874 Mon Sep 17 00:00:00 2001 From: johni0702 Date: Sun, 19 Jul 2015 13:39:33 +0200 Subject: [PATCH] Fix bug where thePlayer is reset to the position of its bounding box causing the suffocation overlay to be displayed for a frame --- .../java/eu/crushedpixel/replaymod/entities/CameraEntity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/eu/crushedpixel/replaymod/entities/CameraEntity.java b/src/main/java/eu/crushedpixel/replaymod/entities/CameraEntity.java index dc5e353c..37b4b5d0 100755 --- a/src/main/java/eu/crushedpixel/replaymod/entities/CameraEntity.java +++ b/src/main/java/eu/crushedpixel/replaymod/entities/CameraEntity.java @@ -102,9 +102,7 @@ public class CameraEntity extends EntityPlayer { mc.thePlayer.rotationYaw = mc.getRenderViewEntity().rotationYaw; //removes water/suffocation/shadow overlays in screen - mc.thePlayer.posX = 0; - mc.thePlayer.posY = 500; - mc.thePlayer.posZ = 0; + mc.thePlayer.setPosition(0, 500, 0); } lastCall = Sys.getTime();