Fix crash in `spawnpoint.save` (triggered by /setspawn) (#3)

master
Lone_Wolf 2019-03-22 12:58:43 -07:00 committed by Elijah Duffy
parent f7a102396f
commit e428ced261
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ end
-- [function] Save
function spawnpoint.save()
if storage then
storage:set_float("time", spawnpoint.time)
storage:set_float("time", spawnpoint.time or 0)
storage:set_string("do_not_move", tostring(spawnpoint.do_not_move))
if spawnpoint.pos then