Skip to content

Commit

Permalink
Fix loading reflector on 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
kernitus committed Jun 20, 2024
1 parent 300efd6 commit 431198e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ public class Reflector {

majorVersion = Integer.parseInt(splitVersion[0]);
minorVersion = Integer.parseInt(splitVersion[1]);
patchVersion = Integer.parseInt(splitVersion[2]);
if(splitVersion.length > 2) {
patchVersion = Integer.parseInt(splitVersion[2]);
} else {
patchVersion = 0;
}
} catch (Exception e) {
System.err.println("Failed to load Reflector");
e.printStackTrace();
System.err.println("Failed to load Reflector: " + e.getMessage());
}
}

Expand Down

0 comments on commit 431198e

Please sign in to comment.