mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Revert the player range check when dropping fruit from trees
This commit is contained in:
parent
ded8499e9f
commit
f8b4238822
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ public class FruitBearingBlock extends LeavesBlock implements TintedBlock, Bucka
|
||||||
|
|
||||||
BlockState fruitState = world.getBlockState(fruitPosition);
|
BlockState fruitState = world.getBlockState(fruitPosition);
|
||||||
|
|
||||||
if (stage == Stage.WITHERING && fruitState.isOf(fruit.get()) && world.isPlayerInRange(pos.getX(), pos.getY(), pos.getZ(), 25)) {
|
if (stage == Stage.WITHERING && fruitState.isOf(fruit.get())) {
|
||||||
if (world.random.nextInt(2) == 0) {
|
if (world.random.nextInt(2) == 0) {
|
||||||
Block.dropStack(world, fruitPosition, rottenFruitSupplier.get());
|
Block.dropStack(world, fruitPosition, rottenFruitSupplier.get());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue