Skip to content

Commit

Permalink
Use EXPAND_FRAMES class reader flags in class transformer (#124)
Browse files Browse the repository at this point in the history
Relates to neoforged/NeoForge#768

(cherry picked from commit f1f25dc)
  • Loading branch information
Su5eD authored and marchermans committed Apr 25, 2024
1 parent 2c71502 commit e86cd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cpw/mods/modlauncher/ClassTransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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, 0);
classReader.accept(clazz, ClassReader.EXPAND_FRAMES);
digest = ()->getSha256().digest(inputClass);
empty = false;
} else {
Expand Down

0 comments on commit e86cd31

Please sign in to comment.