Skip to content

Commit

Permalink
Move forge injection to corresponding bootstrap class
Browse files Browse the repository at this point in the history
  • Loading branch information
InitAuther97 committed Feb 18, 2025
1 parent 0ed3242 commit 165ff88
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void main(String[] args) {

@Override
public void dirtyHacks() throws Exception {
AbstractBootstrap.super.dirtyHacks();
try (var in = getClass().getClassLoader().getResourceAsStream("net/minecraftforge/fml/loading/moddiscovery/ModDiscoverer.class")) {
var clazz = new ClassNode();
new ClassReader(in).accept(clazz, 0);
Expand Down

0 comments on commit 165ff88

Please sign in to comment.