Need to clear the vars too, otherwise it complains when being run in dev (#5)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2021-12-25 21:50:36 +01:00
1 parent 49d6a5eeb3
commit f58c004a84
1 file changed
+1
@@ -91,6 +91,7 @@ public class EnderCoreTransformer implements IClassTransformer {
while (methods.hasNext()) {
MethodNode m = methods.next();
if (voidFogMethod.equals(m.name)) {
m.localVariables.clear();
m.instructions.clear();
m.instructions.add(new VarInsnNode(ALOAD, 0));