diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java | 1 | ||||
-rw-r--r-- | src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/ActiveRenderInfoTransformer.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java b/src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java index 0133ff1..6d71bf0 100644 --- a/src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java +++ b/src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java @@ -118,6 +118,7 @@ public class PerspectiveMod { if (cameraPitch > 90) cameraPitch = 90; if (cameraPitch < -90) cameraPitch = -90; + mc.renderGlobal.setDisplayListEntitiesDirty(); } return false; diff --git a/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/ActiveRenderInfoTransformer.java b/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/ActiveRenderInfoTransformer.java index 531ec90..9a37575 100644 --- a/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/ActiveRenderInfoTransformer.java +++ b/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/ActiveRenderInfoTransformer.java @@ -31,7 +31,7 @@ public class ActiveRenderInfoTransformer implements ITransformer { FieldInsnNode insn = (FieldInsnNode) next; String ownerName = mapClassName(insn.owner); - String fieldName = mapClassName(insn.name); + String fieldName = mapFieldNameFromNode(insn); if(ownerName.equals("net/minecraft/entity/player/EntityPlayer") && insn.desc.equals("F")) { InsnList insnList = null; |