From 8e642df6a2c646585805ffe14b289617ca62c9ff Mon Sep 17 00:00:00 2001 From: Novatux Date: Tue, 23 Jun 2015 19:26:01 +0200 Subject: Try to fix crash (2) --- luaentity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3