From 9faacb38ef6b4c388c04160509cbc73d816acc05 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 30 Dec 2021 16:01:23 +0000 Subject: [PATCH] Warn user if using small-edit history setting with extended world heights --- .../java/com/fastasyncworldedit/bukkit/FaweBukkit.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java index 8419955d4..f207cd925 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java @@ -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