Skip to content

Commit

Permalink
Fix missing localization for obj
Browse files Browse the repository at this point in the history
  • Loading branch information
HybridDog authored and est31 committed Dec 20, 2015
1 parent b4eb614 commit 5755c9a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions builtin/game/item.lua
Expand Up @@ -27,19 +27,11 @@ function core.get_pointed_thing_position(pointed_thing, above)
if above then
-- The position where a node would be placed
return pointed_thing.above
else
-- The position where a node would be dug
return pointed_thing.under
end
-- The position where a node would be dug
return pointed_thing.under
elseif pointed_thing.type == "object" then
obj = pointed_thing.ref
if obj ~= nil then
return obj:getpos()
else
return nil
end
else
return nil
return pointed_thing.ref and pointed_thing.ref:getpos()
end
end

Expand Down

0 comments on commit 5755c9a

Please sign in to comment.