From c5b90ba95431c6871ad8cdd8a273c68edfb732c4 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 29 Jun 2019 04:53:44 +1000 Subject: [PATCH] use cached maxY --- .../src/main/java/com/sk89q/worldedit/EditSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();