mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Merge branch 'OC1.3-MC1.6.4' of github.com:MightyPirates/OpenComputers
This commit is contained in:
commit
a4479619ad
@ -54,7 +54,8 @@ class UpgradeGenerator(val owner: Container with Robot) extends component.Manage
|
|||||||
case _ =>
|
case _ =>
|
||||||
inventory = Some(stack.splitStack(math.min(stack.stackSize, count)))
|
inventory = Some(stack.splitStack(math.min(stack.stackSize, count)))
|
||||||
}
|
}
|
||||||
player.inventory.setInventorySlotContents(owner.selectedSlot, stack)
|
if (stack.stackSize > 0) player.inventory.setInventorySlotContents(owner.selectedSlot, stack)
|
||||||
|
else player.inventory.setInventorySlotContents(owner.selectedSlot, null)
|
||||||
result(true)
|
result(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user