2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/PathfinderGoalPanic.java
|
|
|
|
+++ b/net/minecraft/server/PathfinderGoalPanic.java
|
2016-06-09 03:43:49 +02:00
|
|
|
@@ -47,6 +47,12 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ this.b.b((EntityLiving) null);
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2016-02-29 22:32:46 +01:00
|
|
|
return !this.b.getNavigation().n();
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
2016-02-29 22:32:46 +01:00
|
|
|
|