mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 09:26:08 +03:00
16 lines
566 B
Diff
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();
|
|
}
|
|
|