mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
More 1.17 support
This commit is contained in:
parent
c28c8d164a
commit
97cfb1cfc7
@ -77,7 +77,8 @@ public class CompatibilityManager {
|
||||
}
|
||||
|
||||
private void initWorldCompatibilityLayer() {
|
||||
if((minecraftGameVersion.getMinorVersion().asInt() >= 16 && minecraftGameVersion.getPatchVersion().asInt() >= 4)
|
||||
if(minecraftGameVersion.getMinorVersion().asInt() > 17
|
||||
|| (minecraftGameVersion.getMinorVersion().asInt() >= 16 && minecraftGameVersion.getPatchVersion().asInt() >= 4)
|
||||
|| minecraftGameVersion.getMajorVersion().asInt() >= 2) {
|
||||
if(hasNewWorldMinHeightAPI()) {
|
||||
worldCompatibilityLayer = new WorldCompatibilityLayer_1_16_4();
|
||||
@ -213,6 +214,8 @@ public class CompatibilityManager {
|
||||
} else if(minecraftGameVersion.getPatchVersion().asInt() >= 5) {
|
||||
return NMSVersion.NMS_1_16_5;
|
||||
}
|
||||
case 17:
|
||||
return NMSVersion.NMS_1_17;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,7 @@ public enum NMSVersion {
|
||||
NMS_1_16_3("1.16.3"),
|
||||
NMS_1_16_4("1.16.4"),
|
||||
NMS_1_16_5("1.16.5"),
|
||||
NMS_1_17("1.17"),
|
||||
|
||||
//Version not known to this build of mcMMO
|
||||
UNSUPPORTED("unsupported");
|
||||
|
Loading…
Reference in New Issue
Block a user