diff --git a/Launcher/src/main/java/pro/gravit/launcher/patches/FMLPatcher.java b/Launcher/src/main/java/pro/gravit/launcher/patches/FMLPatcher.java index 3b1a7b77..c5291ae0 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/patches/FMLPatcher.java +++ b/Launcher/src/main/java/pro/gravit/launcher/patches/FMLPatcher.java @@ -25,10 +25,9 @@ public byte[] transform(ClassLoader loader, String className, Class classBein cr.accept(cn, ClassReader.EXPAND_FRAMES); for (MethodNode m : cn.methods) if (m.name.equals("checkPermission") && m.desc.equals("(Ljava/lang/String;)V")) { - m.instructions.clear(); m.instructions.insert(new InsnNode(Opcodes.RETURN)); } - ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES); + ClassWriter cw = new ClassWriter(0); cn.accept(cw); return cw.toByteArray(); }