mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-24 05:44:24 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e912731596 |
No files matched your search
@@ -92,6 +92,8 @@ public class BeekeepingLogic implements IBeekeepingLogic, IStreamable {
|
|||||||
|
|
||||||
hasFlowersCache.readFromNBT(nbttagcompound);
|
hasFlowersCache.readFromNBT(nbttagcompound);
|
||||||
|
|
||||||
|
// A partially unloaded alveary can restore saved data into an existing controller.
|
||||||
|
spawn.clear();
|
||||||
NBTTagList nbttaglist = nbttagcompound.getTagList("Offspring", 10);
|
NBTTagList nbttaglist = nbttagcompound.getTagList("Offspring", 10);
|
||||||
for (int i = 0; i < nbttaglist.tagCount(); i++) {
|
for (int i = 0; i < nbttaglist.tagCount(); i++) {
|
||||||
spawn.add(ItemStack.loadItemStackFromNBT(nbttaglist.getCompoundTagAt(i)));
|
spawn.add(ItemStack.loadItemStackFromNBT(nbttaglist.getCompoundTagAt(i)));
|
||||||
|
|||||||
@@ -69,6 +69,8 @@ public class ItemBeverage extends ItemForestryFood {
|
|||||||
itemstack.stackSize--;
|
itemstack.stackSize--;
|
||||||
if (!entityplayer.inventory.addItemStackToInventory(container)) {
|
if (!entityplayer.inventory.addItemStackToInventory(container)) {
|
||||||
entityplayer.dropPlayerItemWithRandomChoice(container, false);
|
entityplayer.dropPlayerItemWithRandomChoice(container, false);
|
||||||
|
} else {
|
||||||
|
entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, container);
|
||||||
}
|
}
|
||||||
entityplayer.inventory.markDirty();
|
entityplayer.inventory.markDirty();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user