fixed generator item insertion count

This commit is contained in:
Florian Nücke 2013-11-29 06:35:09 +01:00
parent 0a0e1ef905
commit 256a57a40c

View File

@ -41,7 +41,7 @@ class Generator extends ManagedComponent {
existingStack.stackSize += moveCount existingStack.stackSize += moveCount
stack.stackSize -= moveCount stack.stackSize -= moveCount
case _ => case _ =>
inventory = Some(stack.splitStack(stack.getMaxStackSize min count)) inventory = Some(stack.splitStack(stack.stackSize min count))
} }
player.inventory.setInventorySlotContents(context.selectedSlot, stack) player.inventory.setInventorySlotContents(context.selectedSlot, stack)
result(true) result(true)