Remove no longer needed MC-210802 fix (#13059)
This commit is contained in:
-12
@@ -1,17 +1,5 @@
|
|||||||
--- a/net/minecraft/world/entity/ai/goal/EatBlockGoal.java
|
--- a/net/minecraft/world/entity/ai/goal/EatBlockGoal.java
|
||||||
+++ b/net/minecraft/world/entity/ai/goal/EatBlockGoal.java
|
+++ b/net/minecraft/world/entity/ai/goal/EatBlockGoal.java
|
||||||
@@ -26,6 +_,11 @@
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canUse() {
|
|
||||||
+ // Paper start - Fix MC-210802
|
|
||||||
+ if (!((net.minecraft.server.level.ServerLevel) this.level).chunkSource.chunkMap.anyPlayerCloseEnoughForSpawning(this.mob.chunkPosition())) {
|
|
||||||
+ return false;
|
|
||||||
+ }
|
|
||||||
+ // Paper end
|
|
||||||
if (this.mob.getRandom().nextInt(this.mob.isBaby() ? 50 : 1000) != 0) {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
@@ -60,8 +_,9 @@
|
@@ -60,8 +_,9 @@
|
||||||
this.eatAnimationTick = Math.max(0, this.eatAnimationTick - 1);
|
this.eatAnimationTick = Math.max(0, this.eatAnimationTick - 1);
|
||||||
if (this.eatAnimationTick == this.adjustedTickDelay(4)) {
|
if (this.eatAnimationTick == this.adjustedTickDelay(4)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user