not swapping when asked to only move a partial stack in robot.transferTo

This commit is contained in:
Florian Nücke 2013-12-12 20:58:48 +01:00
parent 94627354f2
commit e921693a27

View File

@ -110,11 +110,12 @@ class Robot(val robot: tileentity.Robot) extends Computer(robot) with RobotConte
}
else false
}
else {
else if (count >= from.stackSize) {
robot.setInventorySlotContents(slot, from)
robot.setInventorySlotContents(selectedSlot, to)
true
}
else false
case (Some(from), None) =>
robot.setInventorySlotContents(slot, robot.decrStackSize(selectedSlot, count))
true