Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
sethome.get: Copy a return value
- Loading branch information
Showing
with
6 additions
and
1 deletion.
-
+6
−1
mods/sethome/init.lua
|
@@ -41,7 +41,12 @@ sethome.set = function(name, pos) |
|
|
end |
|
|
|
|
|
sethome.get = function(name) |
|
|
return homepos[name] |
|
|
local pos = homepos[name] |
|
|
if pos then |
|
|
return vector.new(pos) |
|
|
else |
|
|
return nil |
|
|
end |
|
|
end |
|
|
|
|
|
sethome.go = function(name) |
|
|