Merge branch 'master' of https://github.com/paulevsGitch/BetterEnd
This commit is contained in:
commit
2b88f5db91
2 changed files with 10 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue