Don't crash if spawnpoint conversion fails

master
BlockMen 2014-08-07 20:26:46 +02:00
parent bfd5133455
commit c6f615872f
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ function beds.read_spawns()
end
function beds.save_spawns()
if not beds.spawn then
return
end
writing = true
local output = io.open(org_file, "w")
for i, v in pairs(beds.spawn) do