Update src/main/java/mineverse/Aust1n46/chat/versions/VersionHandler.java

Co-authored-by: Derek Lee <derek.evilcornrules@gmail.com>
This commit is contained in:
Aust1n46 2022-08-23 22:00:36 -05:00 committed by GitHub
parent e315824ae9
commit dfcc2bf1bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,15 +71,6 @@ public final class VersionHandler {
} }
public static boolean isAbove_1_19() { public static boolean isAbove_1_19() {
if (SERVER_VERSION.getMajor() < 1) { return SERVER_VERSION.isAtLeast(MC1_19_1);
return false;
}
if (SERVER_VERSION.getMajor() > 1) {
return true;
}
if (SERVER_VERSION.getMinor() > 19) {
return true;
}
return SERVER_VERSION.getMinor() == 19 && SERVER_VERSION.getBuild() > 0;
} }
} }