Add /ld updateprotocollib, improve version checking for nms

This commit is contained in:
libraryaddict
2020-06-30 16:06:27 +12:00
parent 31672fce7b
commit f3d5f7efc3
7 changed files with 185 additions and 48 deletions

View File

@@ -14,6 +14,6 @@ public enum NmsVersion {
* If this nms version isn't newer than the running version
*/
public boolean isSupported() {
return ReflectionManager.getVersion().ordinal() >= ordinal();
return ReflectionManager.getVersion() != null && ReflectionManager.getVersion().ordinal() >= ordinal();
}
}