Fix pointed.thing.ref -> pointed_thing.ref in builtin.lua
authorPerttu Ahola <celeron55@gmail.com>
Tue, 28 Feb 2012 17:55:24 +0000 (19:55 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 28 Feb 2012 17:55:24 +0000 (19:55 +0200)
data/builtin.lua

index b8891c066d1c75702bf47c7785d986d4e1194cfd..eba5b429ef8d61d6b6371c4e18d060935b246ddf 100644 (file)
@@ -106,7 +106,7 @@ function minetest.get_pointed_thing_position(pointed_thing, above)
                        return pointed_thing.under
                end
        elseif pointed_thing.type == "object" then
-               obj = pointed.thing.ref
+               obj = pointed_thing.ref
                if obj ~= nil then
                        return obj:getpos()
                else