2015-05-25 18:37:24 +08:00
|
|
|
--- a/net/minecraft/server/PathfinderGoalPanic.java
|
|
|
|
+++ b/net/minecraft/server/PathfinderGoalPanic.java
|
2016-03-01 05:32:46 +08:00
|
|
|
@@ -46,6 +46,12 @@
|
2014-11-26 05:32:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean b() {
|
|
|
|
+ // CraftBukkit start - introduce a temporary timeout hack until this is fixed properly
|
2015-02-27 06:41:06 +08:00
|
|
|
+ if ((this.b.ticksLived - this.b.hurtTimestamp) > 100) {
|
2014-11-26 05:32:16 +08:00
|
|
|
+ this.b.b((EntityLiving) null);
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2016-03-01 05:32:46 +08:00
|
|
|
return !this.b.getNavigation().n();
|
2014-11-26 05:32:16 +08:00
|
|
|
}
|
2016-03-01 05:32:46 +08:00
|
|
|
|