Spire & ship fixes

This commit is contained in:
paulevsGitch 2021-01-14 22:00:20 +03:00
parent ff9e674587
commit 6d039875d2
3 changed files with 41 additions and 33 deletions

View file

@ -246,7 +246,7 @@ public class StructureHelper {
while (world.getBlockState(mut2).getMaterial().isReplaceable() && mut2.getY() > minY) {
mut2.setY(mut2.getY() - 1);
}
if (y > 50 && state.canPlaceAt(world, mut2)) {
if (!world.getBlockState(mut2).isAir() && state.canPlaceAt(world, mut2)) {
mut2.setY(mut2.getY() + 1);
BlocksHelper.setWithoutUpdate(world, mut2, state);
}