Jump to content




[1.47][SSP] Turtle Place Bug


9 replies to this topic

#1 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

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

#2 Learning_inpaired

  • New Members
  • 77 posts

Posted 20 December 2012 - 02:02 AM

u should test this on my server, to see were the bug started

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 December 2012 - 02:10 AM

 woodzykiler, on 20 December 2012 - 02:02 AM, said:

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.

#4 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 20 December 2012 - 03:25 AM

Tell me how a turtle can place redstone on air?

#5 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 December 2012 - 03:30 AM

 Cloudy, on 20 December 2012 - 03:25 AM, said:

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

#6 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 20 December 2012 - 03:51 AM

You're still trying to place redstone on air...

#7 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

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?

#8 Cloudy

    Ex-Developer

  • Members
  • 2,543 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.

#9 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 December 2012 - 04:08 AM

 Cloudy, on 20 December 2012 - 04:03 AM, said:

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?

#10 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 20 December 2012 - 04:39 AM

Yep.

Just tested turtle.placeDown too - worked fine for me, so dunno what went wrong!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users