From f2cbce30d96b62bbdf9cbb8c0e3dc7806a531cf2 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 28 Jun 2020 08:56:12 +1000 Subject: [PATCH] SPIGOT-5866: Beehive unknown TargetReason --- nms-patches/BlockBeehive.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nms-patches/BlockBeehive.patch diff --git a/nms-patches/BlockBeehive.patch b/nms-patches/BlockBeehive.patch new file mode 100644 index 0000000000..63532d638e --- /dev/null +++ b/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 + } + } + }