Compare commits

...
1 Commits
Author SHA1 Message Date
Worive e912731596 Clear pending offspring before loading saved bees 2026-11-15 12:34:06 +01:00
@@ -92,6 +92,8 @@ public class BeekeepingLogic implements IBeekeepingLogic, IStreamable {
hasFlowersCache.readFromNBT(nbttagcompound);
// A partially unloaded alveary can restore saved data into an existing controller.
spawn.clear();
NBTTagList nbttaglist = nbttagcompound.getTagList("Offspring", 10);
for (int i = 0; i < nbttaglist.tagCount(); i++) {
spawn.add(ItemStack.loadItemStackFromNBT(nbttaglist.getCompoundTagAt(i)));