Compare commits

..
1 Commits
Author SHA1 Message Date
7ba29fb5aa [2.9.x Bug Fix] Updated Beverage container handling. (#143)
Co-authored-by: UltraProdigy <[email protected]>
Co-authored-by: boubou19 <[email protected]>
Co-authored-by: Léa Gris <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
Co-authored-by: Armisael5 <[email protected]>
2026-11-20 13:43:18 -05:00
2 changed files with 0 additions and 4 deletions

No files matched your search

@@ -92,8 +92,6 @@ 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)));
@@ -69,8 +69,6 @@ public class ItemBeverage extends ItemForestryFood {
itemstack.stackSize--;
if (!entityplayer.inventory.addItemStackToInventory(container)) {
entityplayer.dropPlayerItemWithRandomChoice(container, false);
} else {
entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, container);
}
entityplayer.inventory.markDirty();