aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/monster/Phantom.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/monster/Phantom.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/monster/Phantom.java.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/monster/Phantom.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/monster/Phantom.java.patch
new file mode 100644
index 0000000000..c80803c72b
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/monster/Phantom.java.patch
@@ -0,0 +1,13 @@
+--- a/net/minecraft/world/entity/monster/Phantom.java
++++ b/net/minecraft/world/entity/monster/Phantom.java
+@@ -589,8 +549,8 @@
+ while (iterator.hasNext()) {
+ Player player = (Player) iterator.next();
+
+- if (Phantom.this.canAttack(player, TargetingConditions.DEFAULT)) {
+- Phantom.this.setTarget(player);
++ if (Phantom.this.canAttack(entityhuman, TargetingConditions.DEFAULT)) {
++ Phantom.this.setTarget(entityhuman, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // CraftBukkit - reason
+ return true;
+ }
+ }