mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Fix crash reported here: https://forum.minetest.net/viewtopic.php?f=6&t=9726
This commit is contained in:
@@ -53,7 +53,7 @@ local function read_file(filename)
|
||||
local t = f:read("*all")
|
||||
f:close()
|
||||
if t=="" or t==nil then return {} end
|
||||
return core.deserialize(t)
|
||||
return core.deserialize(t) or {}
|
||||
end
|
||||
|
||||
local function write_file(filename, table)
|
||||
|
Reference in New Issue
Block a user