Paper/nms-patches/PathfinderGoalPanic.patch

16 Zeilen
484 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/PathfinderGoalPanic.java
+++ b/net/minecraft/server/PathfinderGoalPanic.java
@@ -36,6 +36,12 @@
}
public boolean b() {
+ // CraftBukkit start - introduce a temporary timeout hack until this is fixed properly
2015-02-26 23:41:06 +01:00
+ if ((this.b.ticksLived - this.b.hurtTimestamp) > 100) {
+ this.b.b((EntityLiving) null);
+ return false;
+ }
+ // CraftBukkit end
return !this.b.getNavigation().m();
}
}