summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2015-06-23 19:26:01 +0200
committerNovatux <nathanael.courant@laposte.net>2015-06-23 19:26:01 +0200
commit8e642df6a2c646585805ffe14b289617ca62c9ff (patch)
tree79d90672a03b4d62f5bbc7ae23d012d869415018
parent528b21da7f28a356d7b041a6bd37442273a0d49b (diff)
downloadpipeworks-8e642df6a2c646585805ffe14b289617ca62c9ff.tar
pipeworks-8e642df6a2c646585805ffe14b289617ca62c9ff.tar.gz
pipeworks-8e642df6a2c646585805ffe14b289617ca62c9ff.tar.bz2
pipeworks-8e642df6a2c646585805ffe14b289617ca62c9ff.tar.xz
pipeworks-8e642df6a2c646585805ffe14b289617ca62c9ff.zip
Try to fix crash (2)
-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)