mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Fix null error in BitSetChunkStore
This commit is contained in:
@ -77,9 +77,22 @@ public class CompatibilityManager {
|
||||
}
|
||||
|
||||
private void initWorldCompatibilityLayer() {
|
||||
if(minecraftGameVersion.getMinorVersion().asInt() >= 16 && minecraftGameVersion.getPatchVersion().asInt() >= 4 || minecraftGameVersion.getMajorVersion().asInt() >= 2) {
|
||||
if((minecraftGameVersion.getMinorVersion().asInt() >= 16 && minecraftGameVersion.getPatchVersion().asInt() >= 4)
|
||||
|| minecraftGameVersion.getMajorVersion().asInt() >= 2) {
|
||||
if(hasNewWorldMinHeightAPI()) {
|
||||
worldCompatibilityLayer = new WorldCompatibilityLayer_1_16_4();
|
||||
} else {
|
||||
worldCompatibilityLayer = new WorldCompatibilityLayer() {
|
||||
@Override
|
||||
public int getMinWorldHeight(@NotNull World world) {
|
||||
return WorldCompatibilityLayer.super.getMinWorldHeight(world);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxWorldHeight(@NotNull World world) {
|
||||
return WorldCompatibilityLayer.super.getMaxWorldHeight(world);
|
||||
}
|
||||
};
|
||||
}
|
||||
} else {
|
||||
worldCompatibilityLayer = new WorldCompatibilityLayer() {
|
||||
|
Reference in New Issue
Block a user