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

16 Zeilen
504 B
Diff

2015-05-25 20:37:24 +10:00
--- a/net/minecraft/server/PathfinderGoalPanic.java
+++ b/net/minecraft/server/PathfinderGoalPanic.java
2020-06-25 10:00:00 +10:00
@@ -68,6 +68,12 @@
2019-04-23 12:00:00 +10:00
@Override
public boolean b() {
+ // CraftBukkit start - introduce a temporary timeout hack until this is fixed properly
2017-05-14 12:00:00 +10:00
+ if ((this.a.ticksLived - this.a.hurtTimestamp) > 100) {
2018-10-23 06:00:00 +11:00
+ this.a.setLastDamager((EntityLiving) null);
+ return false;
+ }
+ // CraftBukkit end
2019-12-11 09:00:00 +11:00
return !this.a.getNavigation().m();
}
2016-03-01 08:32:46 +11:00