File tree 1 file changed +2
-2
lines changed
src/main/java/cpw/mods/modlauncher
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ private Launcher() {
65
65
}
66
66
67
67
public static void main (String ... args ) {
68
- if (System .getProperty ("java.vendor " ).contains ("OpenJ9" )) {
68
+ if (System .getProperty ("java.vm.name " ).contains ("OpenJ9" )) {
69
69
System .err .printf ("""
70
70
You are attempting to run with an unsupported Java Virtual Machine : %s
71
71
Please visit https://adoptopenjdk.net and install the HotSpot variant.
72
72
OpenJ9 is incompatible with several of the transformation behaviours that we rely on to work.
73
- """ , System .getProperty ("java.vendor " ));
73
+ """ , System .getProperty ("java.vm.name " ));
74
74
throw new IllegalStateException ("Open J9 is not supported" );
75
75
}
76
76
LogManager .getLogger ().info (MODLAUNCHER ,"ModLauncher running: args {}" , () -> LaunchServiceHandler .hideAccessToken (args ));
You can’t perform that action at this time.
0 commit comments