This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
immibis's profile picture

[1.47][SMP] turtle.suck() should not affect target inventory when it fails

Started by immibis, 17 December 2012 - 07:17 PM
immibis #1
Posted 17 December 2012 - 08:17 PM
If there is a block with an inventory in front of a turtle, and the block's first slot is empty, and the turtle executes turtle.suck(), and the turtle's inventory doesn't have room for the first stack in the block, then the first stack in the block will be moved to the first slot.

Example: If a chest contains nothing in its first slot, and 64 cobblestone in its second slot, then when a turtle whose inventory is full of dirt tries to suck from the chest it will move the cobblestone to the chest's first slot.
ScruffyRules #2
Posted 17 December 2012 - 11:52 PM
i guess thats the way it works it takes the cobble then check if it has room if not puts cobble back?
Cloudy #3
Posted 18 December 2012 - 12:11 AM
Precisely. I'll look into fixing this behaviour.