From 4de1fd23bcc15253fee1bfac440ee884eb515549 Mon Sep 17 00:00:00 2001 From: octacian Date: Tue, 14 Mar 2017 20:46:02 -0700 Subject: [PATCH] Fix crash if spawnpoint.conf does not exist --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index fe4498a..253a58a 100644 --- a/init.lua +++ b/init.lua @@ -30,7 +30,7 @@ end -- [function] Load function spawnpoint.load() local res = io.open(path, "r"):read("*all") - if res ~= "" then + if res and res ~= "" then spawnpoint.pos = minetest.string_to_pos(res) end end