File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
paper-server/patches/sources/net/minecraft/world/entity/ai/goal Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 11--- a/net/minecraft/world/entity/ai/goal/EatBlockGoal.java
22+++ b/net/minecraft/world/entity/ai/goal/EatBlockGoal.java
3- @@ -26,6 +_,11 @@
4-
5- @Override
6- public boolean canUse() {
7- + // Paper start - Fix MC-210802
8- + if (!((net.minecraft.server.level.ServerLevel) this.level).chunkSource.chunkMap.anyPlayerCloseEnoughForSpawning(this.mob.chunkPosition())) {
9- + return false;
10- + }
11- + // Paper end
12- if (this.mob.getRandom().nextInt(this.mob.isBaby() ? 50 : 1000) != 0) {
13- return false;
14- } else {
153@@ -60,8 +_,9 @@
164 this.eatAnimationTick = Math.max(0, this.eatAnimationTick - 1);
175 if (this.eatAnimationTick == this.adjustedTickDelay(4)) {
You can’t perform that action at this time.
0 commit comments