JITPack version check

This commit is contained in:
Anuken
2020-10-14 09:08:03 -04:00
parent f96552a1a1
commit d630110396
2 changed files with 1 additions and 4 deletions

View File

@@ -85,9 +85,6 @@ public class Pathfinder implements Runnable{
tiles[tile.x][tile.y] = packTile(tile); tiles[tile.x][tile.y] = packTile(tile);
} }
//special preset which may help speed things up; this is optional
//preloadPath(getField(state.rules.waveTeam, costGround, fieldCore));
start(); start();
}); });

View File

@@ -1,4 +1,4 @@
if(JavaVersion.current().ordinal() < JavaVersion.VERSION_14.ordinal()){ if(JavaVersion.current().ordinal() < JavaVersion.VERSION_14.ordinal() && System.getenv("JITPACK") != "true"){
throw new GradleException("!!! YOU MUST USE JAVA 14 OR ABOVE TO COMPILE AND RUN MINDUSTRY !!! Read the README. Your version: ${System.properties["java.version"]}") throw new GradleException("!!! YOU MUST USE JAVA 14 OR ABOVE TO COMPILE AND RUN MINDUSTRY !!! Read the README. Your version: ${System.properties["java.version"]}")
} }