diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java index 33bba33a1..f083f4138 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java @@ -2686,7 +2686,7 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue, continue; } - for (int y = world.getMaxY(); y >= 1; --y) { + for (int y = maxY; y >= 1; --y) { BlockVector3 pt = BlockVector3.at(x, y, z); BlockType id = getBlock(pt).getBlockType();