From 2a1fdf470f9fd52a9c20b09e6c755ba9bd105491 Mon Sep 17 00:00:00 2001 From: wizjany Date: Sun, 14 Apr 2019 11:16:49 -0400 Subject: [PATCH] Implement getMaxY for ForgeWorld. Should play nicer with things like CubicChunks. Note that there is no way to get the min point in Minecraft itself, so this only supports going up, not down. --- .../src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java index 43a9399b9..5dbdc09f6 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java @@ -426,6 +426,11 @@ public class ForgeWorld extends AbstractWorld { } } + @Override + public int getMaxY() { + return getWorld().getHeight(); + } + @Override public BlockVector3 getSpawnPosition() { return ForgeAdapter.adapt(getWorld().getSpawnPoint());