3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-23 23:00:08 +01:00
Paper/nms-patches/PathfinderGoalPanic.patch

16 Zeilen
496 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/PathfinderGoalPanic.java
+++ b/net/minecraft/server/PathfinderGoalPanic.java
2016-11-17 02:41:03 +01:00
@@ -53,6 +53,12 @@
}
public boolean b() {
+ // CraftBukkit start - introduce a temporary timeout hack until this is fixed properly
2017-05-14 04:00:00 +02:00
+ if ((this.a.ticksLived - this.a.hurtTimestamp) > 100) {
2018-10-22 21:00:00 +02:00
+ this.a.setLastDamager((EntityLiving) null);
+ return false;
+ }
+ // CraftBukkit end
2018-07-22 04:00:00 +02:00
return !this.a.getNavigation().p();
}
2016-02-29 22:32:46 +01:00