mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed alfalfa popping off when loading a world
This commit is contained in:
parent
2d46cf5c9a
commit
6bf7568481
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue