mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
fixed generator item insertion count
This commit is contained in:
parent
0a0e1ef905
commit
256a57a40c
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user