Fixed alfalfa popping off when loading a world

This commit is contained in:
Sollace 2018-09-26 00:13:02 +02:00
parent 2d46cf5c9a
commit 6bf7568481

View file

@ -93,6 +93,11 @@ public class BlockAlfalfa extends BlockCrops {
}
}
@Override
protected boolean canSustainBush(IBlockState state) {
return super.canSustainBush(state) || state.getBlock() == this;
}
protected void growUpwards(World world, BlockPos pos, IBlockState state, int increase) {
boolean hasDown = world.getBlockState(pos.down()).getBlock() == this;
boolean hasTrunk = world.getBlockState(pos.down(2)).getBlock() == this;