From c9e0203994f46d40aa8d7ef5f6dab6a81fb06c4f Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Fri, 27 Mar 2020 12:36:12 +0000 Subject: [PATCH] Disable parts of HeldItemRendererFix, seems to fix #213 --- .../modmuss50/optifabric/patcher/fixes/HeldItemRendererFix.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/modmuss50/optifabric/patcher/fixes/HeldItemRendererFix.java b/src/main/java/me/modmuss50/optifabric/patcher/fixes/HeldItemRendererFix.java index 005b98ce..2a826e88 100644 --- a/src/main/java/me/modmuss50/optifabric/patcher/fixes/HeldItemRendererFix.java +++ b/src/main/java/me/modmuss50/optifabric/patcher/fixes/HeldItemRendererFix.java @@ -34,7 +34,7 @@ public void fix(ClassNode optifine, ClassNode minecraft) { insnList.add(new VarInsnNode(Opcodes.ALOAD, 4)); insnList.add(getInstList("net/optifine/shaders/Shaders", "isSkipRenderHand", String.format("(L%s;)Z", handName))); - oldNode.instructions.insertBefore(oldNode.instructions.getFirst(), insnList); + // oldNode.instructions.insertBefore(oldNode.instructions.getFirst(), insnList); //Remove the old method optifine.methods.removeIf(methodNode -> methodNode.name.equals(renderFirstPersonItemName));