Skip to content
Permalink
Browse files

sethome.get: Copy a return value

  • Loading branch information
Rui authored and sofar committed Nov 6, 2016
1 parent 178db04 commit 631f7f46c758721945dbb201bb7f4c84f21ee863
Showing with 6 additions and 1 deletion.
  1. +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)

0 comments on commit 631f7f4

Please sign in to comment.