Skip to content

Commit

Permalink
Add a check to avoid possible redundant modification of ModDiscoverer
Browse files Browse the repository at this point in the history
  • Loading branch information
InitAuther97 committed Feb 18, 2025
1 parent 165ff88 commit 4e999fa
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ public void dirtyHacks() throws Exception {
throw new RuntimeException("Cannot transform ModDiscoverer: <init> not found");
}

for (var field: clazz.fields) {
if ("arclight$INSTANCE".equals(field.name)) {
return;
}
}

FrameNode lastFrame = null;
for (var insn: constructor.instructions) {
if (insn instanceof FrameNode frame) {
Expand Down

0 comments on commit 4e999fa

Please sign in to comment.