Posted 11 May 2013 - 05:37 PM
Sometimes CC (Minecraft 1.5.1) tells me 1 == 2 and 2 ~= 2. When I run a basic program I have no issues, but with this code it comes up.
http://pastebin.com/wYf0prC0
This line
http://pastebin.com/wYf0prC0
This line
if y == yx then
print(y .. ' equals ' .. yx)
t.digDown()
t.down()
else
print(y .. ' does not equal ' .. yx)
end
ends up outputting
1 does not equal 2
2 does not equal 2
If I change it to
if not y == yx then
print(y .. ' does not equal ' .. yx)
t.digDown()
t.down()
else
print(y .. ' equals ' .. yx)
end
it'll say
1 equals 2
2 equals 2