From 6cc029a6e4e95ea91509bcc0e2c4751d8d832668 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sun, 3 Jan 2021 14:26:05 +0100 Subject: [PATCH] Fix #931 --- mods/HELP/mcl_craftguide/init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mods/HELP/mcl_craftguide/init.lua b/mods/HELP/mcl_craftguide/init.lua index 86bd742a99..3fd89fbf7d 100644 --- a/mods/HELP/mcl_craftguide/init.lua +++ b/mods/HELP/mcl_craftguide/init.lua @@ -1100,7 +1100,7 @@ if progressive_mode then local meta = player:get_meta() local name = player:get_player_name() local data = player_data[name] - + data.inv_items = deserialize(meta:get_string("inv_items")) or {} end) @@ -1108,7 +1108,11 @@ if progressive_mode then local meta = player:get_meta() local name = player:get_player_name() local data = player_data[name] - + + if not data or not data.inv_items then + return + end + meta:set_string("inv_items", serialize(data.inv_items)) end