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

@@ -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"]}")
}