Skip to content

Commit 5755c9a

Browse files
HybridDogest31
authored andcommittedDec 20, 2015
Fix missing localization for obj
1 parent b4eb614 commit 5755c9a

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed
 

‎builtin/game/item.lua

+3-11
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,11 @@ function core.get_pointed_thing_position(pointed_thing, above)
2727
if above then
2828
-- The position where a node would be placed
2929
return pointed_thing.above
30-
else
31-
-- The position where a node would be dug
32-
return pointed_thing.under
3330
end
31+
-- The position where a node would be dug
32+
return pointed_thing.under
3433
elseif pointed_thing.type == "object" then
35-
obj = pointed_thing.ref
36-
if obj ~= nil then
37-
return obj:getpos()
38-
else
39-
return nil
40-
end
41-
else
42-
return nil
34+
return pointed_thing.ref and pointed_thing.ref:getpos()
4335
end
4436
end
4537

0 commit comments

Comments
 (0)
Please sign in to comment.