1 posts
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)
3790 posts
Location
Lincoln, Nebraska
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.
8543 posts
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.