mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 23:10:17 +01:00
sethome.get: Copy a return value
This commit is contained in:
parent
178db04526
commit
631f7f46c7
@ -41,7 +41,12 @@ sethome.set = function(name, pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
sethome.get = function(name)
|
sethome.get = function(name)
|
||||||
return homepos[name]
|
local pos = homepos[name]
|
||||||
|
if pos then
|
||||||
|
return vector.new(pos)
|
||||||
|
else
|
||||||
|
return nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
sethome.go = function(name)
|
sethome.go = function(name)
|
||||||
|
Loading…
Reference in New Issue
Block a user