Lotus fix
This commit is contained in:
parent
c48071a551
commit
26533e7a3e
1 changed files with 6 additions and 0 deletions
|
@ -63,6 +63,12 @@ public class BlockEndLotusSeed extends BlockUnderwaterPlantWithAge {
|
|||
BlocksHelper.setWithoutUpdate(world, bpos, flower);
|
||||
bpos.setY(bpos.getY() - 1);
|
||||
stem = world.getBlockState(bpos);
|
||||
if (stem.isOf(BlockRegistry.END_LOTUS_STEM)) {
|
||||
stem = BlockRegistry.END_LOTUS_STEM.getDefaultState();
|
||||
if (!world.getBlockState(bpos.north()).getFluidState().isEmpty()) {
|
||||
stem = stem.with(BlockEndLotusStem.WATERLOGGED, true);
|
||||
}
|
||||
}
|
||||
BlocksHelper.setWithoutUpdate(world, bpos, stem.with(BlockEndLotusStem.SHAPE, TripleShape.TOP));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue