2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/PathfinderGoalPanic.java
|
|
|
|
+++ b/net/minecraft/server/PathfinderGoalPanic.java
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -68,6 +68,12 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|
2014-11-25 22:32:16 +01:00
|
|
|
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);
|
2014-11-25 22:32:16 +01:00
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2019-12-10 23:00:00 +01:00
|
|
|
return !this.a.getNavigation().m();
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
2016-02-29 22:32:46 +01:00
|
|
|
|