From 10b5e167bf57e1da90e74fbd71cf4b31d64b2830 Mon Sep 17 00:00:00 2001 From: Tai Kedzierski Date: Sat, 26 Jan 2019 15:52:08 +0000 Subject: [PATCH] initialize loaded data if nil --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 20ce01f..ebd1e51 100644 --- a/init.lua +++ b/init.lua @@ -63,7 +63,7 @@ local function prefload() minetest.log("error", "[babelfish] Data read failed") return end - player_pref_language = minetest.deserialize(file:read("*a")) + player_pref_language = minetest.deserialize(file:read("*a")) or {} file:close() end