From 3cd0d242a9a631ab7a255c81a761b9a91c6d23b5 Mon Sep 17 00:00:00 2001 From: DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> Date: Tue, 20 Oct 2020 15:02:59 -0400 Subject: Bug fixes: Fix chunk unloading issues (#2) Fix particles not rotating in prod. --- src/main/java/me/djtheredstoner/perspectivemod/PerspectiveMod.java | 1 + .../perspectivemod/asm/transformers/ActiveRenderInfoTransformer.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit