From e477e8caec40807066b4003f7f1a1d8ba1c80324 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 28 Jun 2020 08:56:12 +1000 Subject: [PATCH] SPIGOT-5866: Beehive unknown TargetReason By: md_5 --- paper-server/nms-patches/BlockBeehive.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 paper-server/nms-patches/BlockBeehive.patch diff --git a/paper-server/nms-patches/BlockBeehive.patch b/paper-server/nms-patches/BlockBeehive.patch new file mode 100644 index 0000000000..63532d638e --- /dev/null +++ b/paper-server/nms-patches/BlockBeehive.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/server/BlockBeehive.java ++++ b/net/minecraft/server/BlockBeehive.java +@@ -55,7 +55,7 @@ + EntityBee entitybee = (EntityBee) iterator.next(); + + if (entitybee.getGoalTarget() == null) { +- entitybee.setGoalTarget((EntityLiving) list1.get(world.random.nextInt(i))); ++ entitybee.setGoalTarget((EntityLiving) list1.get(world.random.nextInt(i)), org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // CraftBukkit + } + } + }