-
Bug
-
Resolution: Fixed
-
1.15.1
-
None
-
Confirmed
-
Entities
-
Normal
The bug
Between serialization and deserialization of a bee entity to NBT, the value of CropsGrownSincePollination seems to be lost. A bee with a CropsGrownSincePollination value of 5 can be serialized to NBT, instantly deserialized from NBT, and instantly reserialized to NBT, and the second NBT compound will have a CropsGrownSincePollination value of 0. A source dive finds that this is caused due to the deserialization method trying to set the crops grown since pollination field from the tag NumCropsGrownSincePollination, instead of the CropsGrownSincePollination tag it's serialized to.
This will result in bees being able to pollinate infinite crops, as long as they're saved to and loaded from NBT before returning to the hive and losing their pollen.