From f6319d36a12156e48ab34476ac7cfbe728fa12b6 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 28 Dec 2021 22:58:25 +0000 Subject: [PATCH] Add methods to CLIPlatform --- .../java/com/sk89q/worldedit/cli/CLIPlatform.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/worldedit-cli/src/main/java/com/sk89q/worldedit/cli/CLIPlatform.java b/worldedit-cli/src/main/java/com/sk89q/worldedit/cli/CLIPlatform.java index eb17c0f37..0704d056b 100644 --- a/worldedit-cli/src/main/java/com/sk89q/worldedit/cli/CLIPlatform.java +++ b/worldedit-cli/src/main/java/com/sk89q/worldedit/cli/CLIPlatform.java @@ -26,6 +26,7 @@ import com.sk89q.worldedit.entity.Player; import com.sk89q.worldedit.extension.platform.AbstractPlatform; import com.sk89q.worldedit.extension.platform.Capability; import com.sk89q.worldedit.extension.platform.Preference; +import com.sk89q.worldedit.internal.Constants; import com.sk89q.worldedit.util.SideEffect; import com.sk89q.worldedit.world.DataFixer; import com.sk89q.worldedit.world.World; @@ -169,6 +170,16 @@ class CLIPlatform extends AbstractPlatform { return (_a, _b, _c) -> NullRelighter.INSTANCE; } + @Override + public int getVersionMinY() { + return dataVersion >= Constants.DATA_VERSION_MC_1_18 ? -64 : 0; + } + + @Override + public int getVersionMaxY() { + return dataVersion >= Constants.DATA_VERSION_MC_1_18 ? 319 : 255; + } + public void addWorld(World world) { worlds.add(world); }