This commit is contained in:
Aleksey 2020-11-02 17:52:29 +03:00
commit 2b88f5db91
2 changed files with 10 additions and 3 deletions

View file

@ -183,12 +183,18 @@ public class BlocksHelper {
setWithoutUpdate(world, POS, AIR);
POS.setY(POS.getY() + 1);
}
continue;
}
else for (Direction dir: HORIZONTAL) {
if (world.getBlockState(POS.offset(dir)).getMaterial().isReplaceable()) {
BlockState st;
for (Direction dir: HORIZONTAL) {
if ((st = world.getBlockState(POS.offset(dir))).getMaterial().isReplaceable() && st.getFluidState().isEmpty()) {
world.getFluidTickScheduler().schedule(POS, state.getFluidState().getFluid(), 0);
break;
}
}
if ((st = world.getBlockState(POS.up())).getMaterial().isReplaceable() && st.getFluidState().isEmpty()) {
world.getFluidTickScheduler().schedule(POS, state.getFluidState().getFluid(), 0);
}
}
// Falling blocks
else if (state.getBlock() instanceof FallingBlock) {

View file

@ -179,7 +179,8 @@ public class StructureHelper {
}
private static boolean ignore(BlockState state) {
return state.isAir()
return state.getMaterial().isReplaceable()
|| !state.getFluidState().isEmpty()
|| state.isIn(EndTags.END_GROUND)
|| state.isOf(EndBlocks.ETERNAL_PEDESTAL)
|| state.isOf(EndBlocks.FLAVOLITE_RUNED_ETERNAL)