Add missing versions to query check, fixes #644

This commit is contained in:
BuildTools 2019-01-30 23:15:43 -05:00
parent 7c713fdc41
commit c8efb7d31c

View File

@ -164,20 +164,52 @@ public class LocaleQuery {
private static boolean _isBelow113(String bukkitVersion) { private static boolean _isBelow113(String bukkitVersion) {
if (bukkitVersion.matches("^[0-9.]+$")) { if (bukkitVersion.matches("^[0-9.]+$")) {
switch(bukkitVersion) { switch(bukkitVersion) {
case "1.12.2" :
return true;
case "1.12.1" :
return true;
case "1.12" : case "1.12" :
return true; return true;
case "1.11.2" :
return true;
case "1.11.1" :
return true;
case "1.11" : case "1.11" :
return true; return true;
case "1.10.2" :
return true;
case "1.10.1" :
return true;
case "1.10" : case "1.10" :
return true; return true;
case "1.9.4" : case "1.9.4" :
return true; return true;
case "1.9.3" :
return true;
case "1.9.2" :
return true;
case "1.9.1" :
return true;
case "1.9" : case "1.9" :
return true; return true;
case "1.8.9" :
return true;
case "1.8.8" :
return true;
case "1.8.7" :
return true;
case "1.8.6" :
return true;
case "1.8.5" :
return true;
case "1.8.4" : case "1.8.4" :
return true; return true;
case "1.8.3" : case "1.8.3" :
return true; return true;
case "1.8.2" :
return true;
case "1.8.1" :
return true;
case "1.8" : case "1.8" :
return true; return true;
case "1.7.10" : case "1.7.10" :
@ -185,7 +217,7 @@ public class LocaleQuery {
case "1.7.9" : case "1.7.9" :
return true; return true;
default: default:
// Bukkit version is 1.13+ // Bukkit version is 1.13+ or unsupported
return false; return false;
} }
} }
@ -224,4 +256,4 @@ public class LocaleQuery {
} }
return key; return key;
} }
} }