summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luaentity.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/luaentity.lua b/luaentity.lua
index e45a8b2..4ecb163 100644
--- a/luaentity.lua
+++ b/luaentity.lua
@@ -11,7 +11,7 @@ local function read_file()
local t = f:read("*all")
f:close()
if t == "" or t == nil then return {} end
- return minetest.deserialize(t)
+ return minetest.deserialize(t) or {}
end
local function write_file(tbl)