Warn user if using small-edit history setting with extended world heights

This commit is contained in:
dordsor21 2021-12-30 16:01:23 +00:00
parent aaad86cf1d
commit 9faacb38ef
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -83,7 +83,9 @@ public class FaweBukkit implements IFawe, Listener {
Bukkit.getServer().shutdown();
}
chunksStretched = new MinecraftVersion().isEqualOrHigherThan(MinecraftVersion.NETHER);
MinecraftVersion version = new MinecraftVersion();
chunksStretched = version.isEqualOrHigherThan(MinecraftVersion.NETHER);
platformAdapter = new NMSAdapter();
@ -102,6 +104,11 @@ public class FaweBukkit implements IFawe, Listener {
// The tick limiter
new ChunkListener9();
});
// Warn if small-edits are enabled with extended world heights
if (version.isEqualOrHigherThan(MinecraftVersion.CAVES_18) && Settings.settings().HISTORY.SMALL_EDITS) {
LOGGER.warn("Small-edits enabled (maximum y range of 0 -> 256) with 1.18 world heights. Are you sure?");
}
}
@Override