Try to fix crash (2)
This commit is contained in:
parent
528b21da7f
commit
8e642df6a2
@ -11,7 +11,7 @@ local function read_file()
|
|||||||
local t = f:read("*all")
|
local t = f:read("*all")
|
||||||
f:close()
|
f:close()
|
||||||
if t == "" or t == nil then return {} end
|
if t == "" or t == nil then return {} end
|
||||||
return minetest.deserialize(t)
|
return minetest.deserialize(t) or {}
|
||||||
end
|
end
|
||||||
|
|
||||||
local function write_file(tbl)
|
local function write_file(tbl)
|
||||||
|
Loading…
Reference in New Issue
Block a user