Revert the player range check when dropping fruit from trees

This commit is contained in:
Sollace 2024-02-10 21:09:36 +00:00
parent ded8499e9f
commit f8b4238822
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -107,7 +107,7 @@ public class FruitBearingBlock extends LeavesBlock implements TintedBlock, Bucka
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) {
Block.dropStack(world, fruitPosition, rottenFruitSupplier.get());
} else {