From 14282ff4c395d75cdfdbf06d22b225f45eb4b917 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sat, 29 Mar 2014 03:10:52 -0500 Subject: [PATCH] Fixed Bug: #0250 - meteorite compass bug? --- client/render/blocks/RenderBlockSkyCompass.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/render/blocks/RenderBlockSkyCompass.java b/client/render/blocks/RenderBlockSkyCompass.java index 3e2a2f2a..d0b60e83 100644 --- a/client/render/blocks/RenderBlockSkyCompass.java +++ b/client/render/blocks/RenderBlockSkyCompass.java @@ -65,11 +65,12 @@ public class RenderBlockSkyCompass extends BaseBlockRender if ( type == ItemRenderType.EQUIPPED_FIRST_PERSON || type == ItemRenderType.INVENTORY || type == ItemRenderType.EQUIPPED ) { EntityPlayer p = Minecraft.getMinecraft().thePlayer; + float rYaw = p.rotationYaw; if ( type == ItemRenderType.EQUIPPED ) { p = (EntityPlayer) obj[1]; - p.rotationYaw = p.renderYawOffset; + rYaw = p.renderYawOffset; } int x = (int) p.posX; @@ -92,13 +93,13 @@ public class RenderBlockSkyCompass extends BaseBlockRender { if ( type == ItemRenderType.EQUIPPED_FIRST_PERSON ) { - float offRads = p.rotationYaw / 180.0f * (float) Math.PI; + float offRads = rYaw / 180.0f * (float) Math.PI; float adjustment = (float) Math.PI * 0.74f; model.renderAll( (float) flipidiy( cr.rad + offRads + adjustment ) ); } else { - float offRads = p.rotationYaw / 180.0f * (float) Math.PI; + float offRads = rYaw / 180.0f * (float) Math.PI; float adjustment = (float) Math.PI * -0.74f; model.renderAll( (float) flipidiy( cr.rad + offRads + adjustment ) ); }