Fix TOP locator

This commit is contained in:
Astrash
2023-10-10 09:44:53 +11:00
parent f896a9a278
commit b5e7c7c112

View File

@@ -22,7 +22,7 @@ public class TopLocator implements Locator {
@Override
public BinaryColumn getSuitableCoordinates(Column<?> column) {
for(int y : search) {
for(int y = search.getMax(); y >= search.getMin(); y--) {
if(column.getBlock(y).isAir() && !column.getBlock(y - 1).isAir()) {
return new BinaryColumn(y, y + 1, yi -> true);
}