3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Add timeout for Panic goal. Fixes BUKKIT-4531

Dieser Commit ist enthalten in:
EvilSeph 2013-08-01 22:13:25 -04:00
Ursprung ab36dbb6a9
Commit a466e0aa6c

Datei anzeigen

@ -36,6 +36,12 @@ public class PathfinderGoalPanic extends PathfinderGoal {
}
public boolean b() {
// CraftBukkit start - introduce a temporary timeout hack until this is fixed properly
if ((this.a.ticksLived - this.a.aE()) > 100) {
this.a.b((EntityLiving) null);
return false;
}
// CraftBukkit end
return !this.a.getNavigation().g();
}
}