summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalPanic.patch
blob: c22bac445d5e2ea0104a19c60f2792485f28a160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- /home/matt/mc-dev-private//net/minecraft/server/PathfinderGoalPanic.java	2015-02-26 22:40:22.963608135 +0000
+++ src/main/java/net/minecraft/server/PathfinderGoalPanic.java	2015-02-26 22:40:22.967608135 +0000
@@ -36,6 +36,12 @@
     }
 
     public boolean b() {
+        // CraftBukkit start - introduce a temporary timeout hack until this is fixed properly
+        if ((this.b.ticksLived - this.b.hurtTimestamp) > 100) {
+            this.b.b((EntityLiving) null);
+            return false;
+        }
+        // CraftBukkit end
         return !this.b.getNavigation().m();
     }
 }