To prevent particle rotations from being interpolated by MC, set prevRotationPitch and prevRotationYaw as well

This commit is contained in:
CrushedPixel
2015-07-23 19:41:49 +02:00
parent ff65ced4a8
commit a51ab0cd44

View File

@@ -98,8 +98,8 @@ public class CameraEntity extends EntityPlayer {
if(ReplayHandler.getCameraEntity() != null && mc.thePlayer != null
&& mc.getRenderViewEntity() != null) {
//Aligns the particle rotation
mc.thePlayer.rotationPitch = mc.getRenderViewEntity().rotationPitch;
mc.thePlayer.rotationYaw = mc.getRenderViewEntity().rotationYaw;
mc.thePlayer.rotationPitch = mc.thePlayer.prevRotationPitch = mc.getRenderViewEntity().rotationPitch;
mc.thePlayer.rotationYaw = mc.thePlayer.prevRotationYaw = mc.getRenderViewEntity().rotationYaw;
//removes water/suffocation/shadow overlays in screen
mc.thePlayer.setPosition(0, 500, 0);