3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2025-01-11 15:40:51 +01:00
Paper/nms-patches/PathfinderGoalPanic.patch

16 Zeilen
483 B
Diff

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