diff options
Diffstat (limited to 'nms-patches/PathfinderGoalTempt.patch')
-rw-r--r-- | nms-patches/PathfinderGoalTempt.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/PathfinderGoalTempt.patch b/nms-patches/PathfinderGoalTempt.patch index d59fc830..df8f4dcb 100644 --- a/nms-patches/PathfinderGoalTempt.patch +++ b/nms-patches/PathfinderGoalTempt.patch @@ -1,9 +1,9 @@ --- a/net/minecraft/server/PathfinderGoalTempt.java +++ b/net/minecraft/server/PathfinderGoalTempt.java -@@ -3,6 +3,12 @@ +@@ -2,6 +2,12 @@ + import com.google.common.collect.Sets; import java.util.Set; - import javax.annotation.Nullable; +// CraftBukkit start +import org.bukkit.craftbukkit.entity.CraftLivingEntity; +import org.bukkit.craftbukkit.event.CraftEventFactory; @@ -13,7 +13,7 @@ public class PathfinderGoalTempt extends PathfinderGoal { -@@ -13,7 +19,7 @@ +@@ -12,7 +18,7 @@ private double e; private double f; private double g; @@ -22,7 +22,7 @@ private int i; private boolean j; private final Set<Item> k; -@@ -40,7 +46,18 @@ +@@ -39,7 +45,18 @@ return false; } else { this.h = this.a.world.findNearbyPlayer(this.a, 10.0D); |