Fixes
This commit is contained in:
parent
9025194a80
commit
fd0d49391d
1 changed files with 8 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue