mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
Fix TOP locator
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ public class TopLocator implements Locator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BinaryColumn getSuitableCoordinates(Column<?> column) {
|
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()) {
|
if(column.getBlock(y).isAir() && !column.getBlock(y - 1).isAir()) {
|
||||||
return new BinaryColumn(y, y + 1, yi -> true);
|
return new BinaryColumn(y, y + 1, yi -> true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user