SPIGOT-5467: Calm down bees that cannot exit hive

This commit is contained in:
md_5 2019-12-23 12:20:35 +11:00
parent 75fac431cf
commit 062680a826

View File

@ -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++;
}