Skip to content
Permalink
Browse files

sethome: Do not write empty homes file

  • Loading branch information
sfan5 committed Jun 10, 2020
1 parent 6d2a897 commit af045dcd8b4568df55a290eb59cc443202c13a58
Showing with 3 additions and 0 deletions.
  1. +3 −0 mods/sethome/init.lua
@@ -32,6 +32,9 @@ sethome.set = function(name, pos)
player:set_attribute("sethome:home", minetest.pos_to_string(pos))

-- remove `name` from the old storage file
if not homepos[name] then
return true
end
local data = {}
local output = io.open(homes_file, "w")
if output then

0 comments on commit af045dc

Please sign in to comment.
You can’t perform that action at this time.