From 062680a826451d77e9b0822b0649809f953be3a0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 23 Dec 2019 12:20:35 +1100 Subject: [PATCH] SPIGOT-5467: Calm down bees that cannot exit hive --- nms-patches/TileEntityBeehive.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nms-patches/TileEntityBeehive.patch b/nms-patches/TileEntityBeehive.patch index f3414a0d50..05a66432d9 100644 --- a/nms-patches/TileEntityBeehive.patch +++ b/nms-patches/TileEntityBeehive.patch @@ -9,3 +9,15 @@ } } else { return false; +@@ -221,6 +221,11 @@ + if (this.a(iblockdata, nbttagcompound, (List) null, tileentitybeehive_releasestatus)) { + iterator.remove(); + } ++ // CraftBukkit start ++ else { ++ tileentitybeehive_a.b = tileentitybeehive_a.c / 2; // Not strictly Vanilla behaviour in cases where bees cannot spawn but still reasonable ++ } ++ // CraftBukkit end + } else { + tileentitybeehive_a.b++; + }