use cached maxY

This commit is contained in:
Jesse Boyd 2019-06-29 04:53:44 +10:00
parent 3850944a81
commit c5b90ba954
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -2686,7 +2686,7 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue,
continue; continue;
} }
for (int y = world.getMaxY(); y >= 1; --y) { for (int y = maxY; y >= 1; --y) {
BlockVector3 pt = BlockVector3.at(x, y, z); BlockVector3 pt = BlockVector3.at(x, y, z);
BlockType id = getBlock(pt).getBlockType(); BlockType id = getBlock(pt).getBlockType();