diff options
author | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2020-10-20 15:02:59 -0400 |
---|---|---|
committer | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2020-10-20 15:02:59 -0400 |
commit | 3cd0d242a9a631ab7a255c81a761b9a91c6d23b5 (patch) | |
tree | 1e724b3cd725edcae6126736bcbdc7bb03077399 /src/main | |
parent | fa9886101104f2447c87fde34b4341bf98c23fbc (diff) | |
download | PerspectiveModv4-3cd0d242a9a631ab7a255c81a761b9a91c6d23b5.tar.gz PerspectiveModv4-3cd0d242a9a631ab7a255c81a761b9a91c6d23b5.tar.bz2 PerspectiveModv4-3cd0d242a9a631ab7a255c81a761b9a91c6d23b5.zip |
Bug fixes:
Fix chunk unloading issues (#2)
Fix particles not rotating in prod.
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; |