Dust Wastelands & Megalakes

This commit is contained in:
paulevsGitch 2020-10-18 22:19:07 +03:00
parent ac6901c924
commit 6b846b5bb7
11 changed files with 291 additions and 1 deletions

View file

@ -160,7 +160,18 @@ public class BlocksHelper {
}
else {
POS.setY(y);
BlocksHelper.setWithoutUpdate(world, POS, AIR);
boolean place = true;
for (Direction dir: HORIZONTAL) {
state = world.getBlockState(POS.offset(dir));
if (!state.getFluidState().isEmpty()) {
BlocksHelper.setWithoutUpdate(world, POS, state);
place = false;
break;
}
}
if (place) {
BlocksHelper.setWithoutUpdate(world, POS, AIR);
}
POS.setY(y - ray);
BlocksHelper.setWithoutUpdate(world, POS, falling);