dumb meme deleted
@@ -44,28 +44,4 @@ public class EntityRendererPatch extends ClassTransformer {
main.instructions.insertBefore(postNode, endJump);
}
}
-
- @RegisterMethodTransformer
- private class RenderWorld extends MethodTransformer {
- @Override
- public ASMMethod getMethod() {
- return Methods.EntityRenderer_renderWorld;
- }
-
- @Inject(description = "Add hook to disable enableDepth in EntityRenderer for CutAwayWorld")
- public void inject(MethodNode main) {
- AbstractInsnNode depthNode = ASMHelper.findPattern(main.instructions.getFirst(), new int[]{INVOKESTATIC}, "x");
-
- Objects.requireNonNull(depthNode, "Find pattern failed for depthNode");
-
- LabelNode endJump = new LabelNode();
-
- InsnList insnPre = new InsnList();
- insnPre.add(ASMHelper.call(GETSTATIC, TypesHook.Fields.ForgeHaxHooks_isCutAwayWorldActivated));
- insnPre.add(new JumpInsnNode(IFNE, endJump));
-
- main.instructions.insertBefore(depthNode, insnPre);
- main.instructions.insert(depthNode, endJump);
- }
- }
}
