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

[1.4][SSP] When refueling with Sugar Cane, turtle.refuel() returns "true" but FuelLevel remains at 0

Started by fexman, 29 August 2012 - 03:24 PM
fexman #1
Posted 29 August 2012 - 05:24 PM
ComputerCraft Version Information: 1.4 Client in technic-v7.2.6 (also tested with 1.41)

Description of Bug:
When placing Sugar Cane in slot 1 and using either the Refuel program or turtle.refuel() function:
- the item is consumed but the fuel level does not change.
- the turtle.refuel() function returns "true"

The Wiki claims that the turtle will gain 3 movement per Sugar Cane.
http://www.computercraft.info/wiki/index.php?title=Turtle.refuel

On a sidenote the Wiki also claims that Mushrooms are a viable fuel source, but both kinds of Mushroom are rejected by the Turtle.
I did not test all Fuel sources, however Coal, Wood Blocks and Sticks worked as expected.
Cruor #2
Posted 30 August 2012 - 03:13 PM
Im sorry for being unclear in my wiki edit, i was meaning mushroom blocks. However that sugar cane bug could be that its furnace value is so low that it gets into 0 movement(this would return true, because it is indeed a fuel) due to math.floors()
Teraminer #3
Posted 30 August 2012 - 06:32 PM
I think a work around would be to refuel with 8 suger cane at a time.
Cloudy #4
Posted 30 August 2012 - 07:19 PM
Fixed in next version due to diligent poking by Cruor.