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

[1.55] [SSP] turtle.compare() does not recognize sideways wooden logs.

Started by NielsH12, 04 August 2013 - 04:49 PM
NielsH12 #1
Posted 04 August 2013 - 06:49 PM
When comparing wooden logs using turtle.compare() it returns false if the wooden log is laying down and true if it stands up.


(I would like this posted in the "Bugs" forums, however I'm unable to post topics, I would just like to address the issue so it can be fixed in the next update)
Cranium #2
Posted 05 August 2013 - 10:46 AM
Moved to Bugs and locked.

Please search first before posting a bug. This is a long standing behavior, as sideways logs have a different metadata than vertical logs. We use the data from middle clicking if I recall correctly, and this isn't likely to change soon as far as I'm aware.
Lyqyd #3
Posted 05 August 2013 - 04:36 PM
For clarity, the problem is that we can't use the pick block (middle click) functionality for comparisons because it's client-side-only. Instead, the details of the block are compared, so mismatches in metadata that the pick block function would ignore are not ignored by ComputerCraft turtles, leading to player-unexpected behavior like this.