From bb064920911152d8a246b699011778bbf6be5175 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 20 Sep 2021 18:10:37 +0100 Subject: [PATCH] Fix -f flag --- .../core/command/tool/brush/FallingSphere.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/command/tool/brush/FallingSphere.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/command/tool/brush/FallingSphere.java index 374458ef9..fd720c54e 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/command/tool/brush/FallingSphere.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/command/tool/brush/FallingSphere.java @@ -41,7 +41,7 @@ public class FallingSphere implements Brush { int startY = Math.max(minY, py - yRadius); int endY = Math.min(maxY, py + yRadius); - int heightY = editSession.getHighestTerrainBlock(ax, az, startY, endY); + int heightY = editSession.getHighestTerrainBlock(ax, az, editSession.getMinY(), endY); if (heightY < startY) { int diff = startY - heightY; startY -= diff;