ComputerCraft icon indicating copy to clipboard operation
ComputerCraft copied to clipboard

turtle.drop() always returns false

Open thedead2 opened this issue 5 years ago • 2 comments

Hi there, I wanted the turtle to use a chest to deposit items if the ender chest is full. So I added to my code:

if (turtle.drop() == false) then useChest() end

The only problem is that turtle.drop() seems to always return false. I actually testeted it on another turtle with the code:

turtle.drop()

if (turtle.drop() == true) then print("success") elseif (turtle.drop() == false) then print("failure") end

It always prints "failure" no matter if the inventory is actually full or if it's completly empty. I think that's a bug.

Additional Information:

Forge Version: 1.12.2-forge-14.23.5.2854 ComputerCraft Version: ComputerCraft1.80pr1

thedead2 avatar Jun 23 '20 00:06 thedead2

You might want to check out https://github.com/SquidDev-CC/CC-Tweaked as Dan has seemingly abandoned this project.

Lupus590 avatar Jun 23 '20 06:06 Lupus590

Ok thanks for the info. That’s a real pity.

thedead2 avatar Jun 23 '20 11:06 thedead2