7508 posts
Location
Australia
Posted 20 December 2012 - 01:31 AM
ComputerCraft Version: 1.47
Player type: Bug found in SSP, may also be present in SMP (untested)
Description of Bug:When using turtle.place() with redstone it returns true, but does not actually place the redstone in the world.
Steps to Reproduce Bug:- Place a turtle (any kind) 1 block above the ground (leaving a block of air between it and the ground)
- Place a piece of redstone in the active inventory slot
- Open "lua"
- Type "turtle.place()", it will return true, but the redstone will not be on the ground
EDIT: Using the latest version of Forge for Minecraft 1.4.5
56 posts
Posted 20 December 2012 - 02:02 AM
u should test this on my server, to see were the bug started
7508 posts
Location
Australia
Posted 20 December 2012 - 02:10 AM
u should test this on my server, to see were the bug started
Well it does return false, but Tekkit servers run a modified CC since it states 1.4.x and yet there are no features of the 1.4.x branch, and also Tekkit is Bukkit, and it says to post Non-Bukkit bugs here. The error I encountered it in is an Instance dedicated just to NEI and CC.
2447 posts
Posted 20 December 2012 - 03:25 AM
Tell me how a turtle can place redstone on air?
7508 posts
Location
Australia
Posted 20 December 2012 - 03:30 AM
Tell me how a turtle can place redstone on air?
Sorry bad typing in OP. Having an air block between it and the ground
EDIT: It's really late here so I'm gonna blame the bad typing on that :P/>
2447 posts
Posted 20 December 2012 - 03:51 AM
You're still trying to place redstone on air…
7508 posts
Location
Australia
Posted 20 December 2012 - 03:58 AM
but if the turtle is sitting on the ground it cannot place redstone in its own block. It has to be off the ground. Also why does it return true. if it actually hasn't.
EDIT: Nevermind, I reloaded the instance and tried again, and it worked this time. It was a fresh instance, could that have caused it somehow?
2447 posts
Posted 20 December 2012 - 04:03 AM
No, the issue is you were using turtle.place() instead of turtle.placeDown().
It returning true can't be avoided - we rely on the use function of the item to tell us if it was successful or not. When trying to place the item on itself (last resort) it checks if it can be placed in the air block - it can't, but it still returns true anyway.
7508 posts
Location
Australia
Posted 20 December 2012 - 04:08 AM
No, the issue is you were using turtle.place() instead of turtle.placeDown().
It returning true can't be avoided - we rely on the use function of the item to tell us if it was successful or not. When trying to place the item on itself (last resort) it checks if it can be placed in the air block - it can't, but it still returns true anyway.
No i was defs using turtle.placeDown()………….. oohhh I see why you keep saying that now, oops i typed turtle.place() in OP I was 100% using turtle.placeDown()… ok I think its time for sleep since apparently its effecting my ability to type!
So is the returning true to placing on the air block a minecraft quirk then?
2447 posts
Posted 20 December 2012 - 04:39 AM
Yep.
Just tested turtle.placeDown too - worked fine for me, so dunno what went wrong!