Fix -f flag

This commit is contained in:
dordsor21 2021-09-20 18:10:37 +01:00
parent 017a28b3dd
commit bb06492091
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -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;