mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +01:00
Fixed using bonemeal on rocks consuming the bonemeal when it shouldn't
This commit is contained in:
parent
77aeaabf78
commit
e6223c8de1
1 changed files with 8 additions and 0 deletions
|
@ -93,6 +93,14 @@ public class RockCropBlock extends CropBlock {
|
||||||
return world.getClosestPlayer(pos.getX(), pos.getY(), pos.getZ(), 20, EquinePredicates.PLAYER_CAN_USE_EARTH) != null;
|
return world.getClosestPlayer(pos.getX(), pos.getY(), pos.getZ(), 20, EquinePredicates.PLAYER_CAN_USE_EARTH) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient) {
|
||||||
|
if (world instanceof World && !canGrow((World)world, ((World)world).random, pos, state)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.isFertilizable(world, pos, state, isClient);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ItemConvertible getSeedsItem() {
|
protected ItemConvertible getSeedsItem() {
|
||||||
return UItems.PEBBLES;
|
return UItems.PEBBLES;
|
||||||
|
|
Loading…
Reference in a new issue