summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalPanic.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-05-14 12:00:00 +1000
committermd_5 <git@md-5.net>2017-05-14 12:00:00 +1000
commit5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5 (patch)
tree0314ba59f51141bb5e0e7ff6ca7723d168ac94b9 /nms-patches/PathfinderGoalPanic.patch
parent6e3cec8bc78269d72ef7ef49ce82a5eadfb9615a (diff)
downloadcraftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.tar
craftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.tar.gz
craftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.tar.lz
craftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.tar.xz
craftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.zip
Update to Minecraft 1.12-pre2
Diffstat (limited to 'nms-patches/PathfinderGoalPanic.patch')
-rw-r--r--nms-patches/PathfinderGoalPanic.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/PathfinderGoalPanic.patch b/nms-patches/PathfinderGoalPanic.patch
index fa425967..f5990487 100644
--- a/nms-patches/PathfinderGoalPanic.patch
+++ b/nms-patches/PathfinderGoalPanic.patch
@@ -5,11 +5,11 @@
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);
++ if ((this.a.ticksLived - this.a.hurtTimestamp) > 100) {
++ this.a.b((EntityLiving) null);
+ return false;
+ }
+ // CraftBukkit end
- return !this.b.getNavigation().n();
+ return !this.a.getNavigation().o();
}