Skip to content
Permalink
Browse files

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.
  • Loading branch information...
wizjany committed Apr 14, 2019
1 parent 593224f commit 820ccea6d854dbe951e60be60d8871142d8047bc
Showing with 5 additions and 0 deletions.
  1. +5 −0 worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java
@@ -153,6 +153,11 @@ public String getName() {
return getWorld().getWorldInfo().getWorldName();
}

@Override
public int getMaxY() {
return getWorld().getHeight();
}

@Override
public boolean setBlock(Vector position, BaseBlock block, boolean notifyAndLight) throws WorldEditException {
checkNotNull(position);

0 comments on commit 820ccea

Please sign in to comment.
You can’t perform that action at this time.