From 4499fec5676952b732f2be69e3d32120df87bb03 Mon Sep 17 00:00:00 2001 From: ShaneBee Date: Wed, 18 Dec 2019 02:07:49 -0800 Subject: [PATCH] SPIGOT-5464: Add BEEHIVE SpawnReason for when a bee leaves a beehive --- nms-patches/TileEntityBeehive.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nms-patches/TileEntityBeehive.patch diff --git a/nms-patches/TileEntityBeehive.patch b/nms-patches/TileEntityBeehive.patch new file mode 100644 index 0000000000..f3414a0d50 --- /dev/null +++ b/nms-patches/TileEntityBeehive.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/server/TileEntityBeehive.java ++++ b/net/minecraft/server/TileEntityBeehive.java +@@ -194,7 +194,7 @@ + BlockPosition blockposition2 = this.getPosition(); + + this.world.playSound((EntityHuman) null, (double) blockposition2.getX(), (double) blockposition2.getY(), (double) blockposition2.getZ(), SoundEffects.BLOCK_BEEHIVE_EXIT, SoundCategory.BLOCKS, 1.0F, 1.0F); +- return this.world.addEntity(entity); ++ return this.world.addEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BEEHIVE); // CraftBukkit + } + } else { + return false;