Bulb vine fix

This commit is contained in:
paulevsGitch 2020-12-17 18:44:14 +03:00
parent 28a786f210
commit d4fb1d5952

View file

@ -42,6 +42,6 @@ public class BlockBulbVine extends BlockVine {
@Override @Override
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) { public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
boolean canPlace = super.canPlaceAt(state, world, pos); boolean canPlace = super.canPlaceAt(state, world, pos);
return state.get(SHAPE) == TripleShape.BOTTOM ? canPlace : canPlace && world.getBlockState(pos.down()).isOf(this); return (state.isOf(this) && state.get(SHAPE) == TripleShape.BOTTOM) ? canPlace : canPlace && world.getBlockState(pos.down()).isOf(this);
} }
} }