--- a/net/minecraft/server/EntityPhantom.java +++ b/net/minecraft/server/EntityPhantom.java @@ -186,7 +186,7 @@ } else { this.b = 60; AxisAlignedBB axisalignedbb = EntityPhantom.this.getBoundingBox().grow(16.0D, 64.0D, 16.0D); - List list = EntityPhantom.this.world.a(EntityHuman.class, axisalignedbb); + List<EntityHuman> list = EntityPhantom.this.world.a(EntityHuman.class, axisalignedbb); // CraftBukkit - decompile error if (!list.isEmpty()) { list.sort((entityhuman, entityhuman1) -> { @@ -198,7 +198,7 @@ EntityHuman entityhuman = (EntityHuman) iterator.next(); if (PathfinderGoalTarget.a(EntityPhantom.this, entityhuman, false, false)) { - EntityPhantom.this.setGoalTarget(entityhuman); + EntityPhantom.this.setGoalTarget(entityhuman, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // CraftBukkit - reason return true; } }