From d4e94e0f0eb2fb79bfcf9bb72f2dfe9f0b418f68 Mon Sep 17 00:00:00 2001 From: Marc Hermans Date: Thu, 25 Apr 2024 22:09:23 +0200 Subject: [PATCH] Revert "Use EXPAND_FRAMES class reader flags in class transformer (#124)" This reverts commit f1f25dcd7aacb400014abcefa0f6d4b16c6d8c60. --- src/main/java/cpw/mods/modlauncher/ClassTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cpw/mods/modlauncher/ClassTransformer.java b/src/main/java/cpw/mods/modlauncher/ClassTransformer.java index a0451df..88376c4 100644 --- a/src/main/java/cpw/mods/modlauncher/ClassTransformer.java +++ b/src/main/java/cpw/mods/modlauncher/ClassTransformer.java @@ -73,7 +73,7 @@ byte[] transform(byte[] inputClass, String className, final String reason) { boolean empty; if (inputClass.length > 0) { final ClassReader classReader = new ClassReader(inputClass); - classReader.accept(clazz, ClassReader.EXPAND_FRAMES); + classReader.accept(clazz, 0); digest = ()->getSha256().digest(inputClass); empty = false; } else {