Summary
If you have a beehive of honey level 5, and some bees inside that have been there for a while, if harvested by hand (with a campfire) nothing happens to the bees inside, but if you use a dispenser to harvest the hive it causes all the bees' ticks_in_hive to reset to 1, loosing all the progress that the bees have spent while inside the hive.
Expected behavior
Harvesting the honey by hand (with campfire) or with a dispenser should not produce an observable difference, and the bees ticks_in_hive should not be reset unexpectedly.
Technical breakdown
For manual harvest,
BeehiveBlock#useItemOnchecks for aCampfireBlockto potentially release angry bees, but if it is present it only callsresetHoneyLevelwithout releasing any bees → This keeps their ticks_in_hive untouched.For Dispenser,
FillBottleDispenseBehaviorcallsreleaseBeesAndResetHoneyLevelinstead ofresetHoneyLevel, which causes the bees to be ejected for less than a tick, since right after the dispenser finishes its block tick, they get entity ticked, realize they are still full of honey and instantly go back into the hive, so they do not visually appear outside but you can hear the sound of bees exiting + entering the hive
Thank you for helping us improve Minecraft! We saved your files: