Fixes
This commit is contained in:
parent
d1830827cb
commit
7c842cf94a
2 changed files with 10 additions and 3 deletions
|
@ -183,12 +183,18 @@ public class BlocksHelper {
|
||||||
setWithoutUpdate(world, POS, AIR);
|
setWithoutUpdate(world, POS, AIR);
|
||||||
POS.setY(POS.getY() + 1);
|
POS.setY(POS.getY() + 1);
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
else for (Direction dir: HORIZONTAL) {
|
BlockState st;
|
||||||
if (world.getBlockState(POS.offset(dir)).getMaterial().isReplaceable()) {
|
for (Direction dir: HORIZONTAL) {
|
||||||
|
if ((st = world.getBlockState(POS.offset(dir))).getMaterial().isReplaceable() && st.getFluidState().isEmpty()) {
|
||||||
world.getFluidTickScheduler().schedule(POS, state.getFluidState().getFluid(), 0);
|
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
|
// Falling blocks
|
||||||
else if (state.getBlock() instanceof FallingBlock) {
|
else if (state.getBlock() instanceof FallingBlock) {
|
||||||
|
|
|
@ -179,7 +179,8 @@ public class StructureHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean ignore(BlockState state) {
|
private static boolean ignore(BlockState state) {
|
||||||
return state.isAir()
|
return state.getMaterial().isReplaceable()
|
||||||
|
|| !state.getFluidState().isEmpty()
|
||||||
|| state.isIn(EndTags.END_GROUND)
|
|| state.isIn(EndTags.END_GROUND)
|
||||||
|| state.isOf(EndBlocks.ETERNAL_PEDESTAL)
|
|| state.isOf(EndBlocks.ETERNAL_PEDESTAL)
|
||||||
|| state.isOf(EndBlocks.FLAVOLITE_RUNED_ETERNAL)
|
|| state.isOf(EndBlocks.FLAVOLITE_RUNED_ETERNAL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue