This commit is contained in:
paulevsGitch 2020-12-06 06:24:08 +03:00
parent 9025194a80
commit fd0d49391d

View file

@ -162,6 +162,14 @@ public class BlocksHelper {
else if (!state.getFluidState().isEmpty()) { else if (!state.getFluidState().isEmpty()) {
if (!state.canPlaceAt(world, POS)) { if (!state.canPlaceAt(world, POS)) {
setWithoutUpdate(world, POS, WATER); setWithoutUpdate(world, POS, WATER);
POS.setY(POS.getY() - 1);
state = world.getBlockState(POS);
while (!state.canPlaceAt(world, POS)) {
state = state.getFluidState().isEmpty() ? AIR : WATER;
setWithoutUpdate(world, POS, state);
POS.setY(POS.getY() - 1);
state = world.getBlockState(POS);
}
} }
POS.setY(y - 1); POS.setY(y - 1);
if (world.isAir(POS)) { if (world.isAir(POS)) {