Files
CatServer/patches/net/minecraft/entity/ai/EntityAIPanic.java.patch
2019-02-24 22:29:41 +08:00

16 lines
566 B
Diff

--- ../src-base/minecraft/net/minecraft/entity/ai/EntityAIPanic.java
+++ ../src-work/minecraft/net/minecraft/entity/ai/EntityAIPanic.java
@@ -73,6 +73,12 @@
public boolean shouldContinueExecuting()
{
+ // CraftBukkit start - introduce a temporary timeout hack until this is fixed properly
+ if ((this.creature.ticksExisted - this.creature.revengeTimer) > 100) {
+ this.creature.onKillEntity(null);
+ return false;
+ }
+ // CraftBukkit end
return !this.creature.getNavigator().noPath();
}