mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 15:48:48 -05:00
Fix missing localization for obj
This commit is contained in:
parent
b4eb614d31
commit
5755c9a439
@ -27,19 +27,11 @@ function core.get_pointed_thing_position(pointed_thing, above)
|
|||||||
if above then
|
if above then
|
||||||
-- The position where a node would be placed
|
-- The position where a node would be placed
|
||||||
return pointed_thing.above
|
return pointed_thing.above
|
||||||
else
|
end
|
||||||
-- The position where a node would be dug
|
-- The position where a node would be dug
|
||||||
return pointed_thing.under
|
return pointed_thing.under
|
||||||
end
|
|
||||||
elseif pointed_thing.type == "object" then
|
elseif pointed_thing.type == "object" then
|
||||||
obj = pointed_thing.ref
|
return pointed_thing.ref and pointed_thing.ref:getpos()
|
||||||
if obj ~= nil then
|
|
||||||
return obj:getpos()
|
|
||||||
else
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
else
|
|
||||||
return nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user