mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 17:56:34 -04:00
Fixed robots not dropping the contents of their tool and container slots. I'm so sorry!
This commit is contained in:
parent
f1a054e6e0
commit
c99750f88e
@ -738,8 +738,13 @@ class Robot extends traits.Computer with traits.PowerInformation with IFluidHand
|
||||
override def dropSlot(slot: Int, count: Int, direction: Option[ForgeDirection]) =
|
||||
InventoryUtils.dropSlot(BlockPosition(x, y, z, world), dynamicInventory, slot, count, direction)
|
||||
|
||||
override def dropAllSlots() =
|
||||
override def dropAllSlots() = {
|
||||
InventoryUtils.dropSlot(BlockPosition(x, y, z, world), this, 0, Int.MaxValue)
|
||||
for (slot <- containerSlots) {
|
||||
InventoryUtils.dropSlot(BlockPosition(x, y, z, world), this, slot, Int.MaxValue)
|
||||
}
|
||||
InventoryUtils.dropAllSlots(BlockPosition(x, y, z, world), dynamicInventory)
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user