From 02777b1f65bfe434d07d2fc44c020acecbfdc67a Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sun, 3 Jan 2021 15:25:06 +0100 Subject: [PATCH] Fix mcl_craftguide completely --- mods/HELP/mcl_craftguide/init.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mods/HELP/mcl_craftguide/init.lua b/mods/HELP/mcl_craftguide/init.lua index e56b5071db..eb98bcce08 100644 --- a/mods/HELP/mcl_craftguide/init.lua +++ b/mods/HELP/mcl_craftguide/init.lua @@ -1108,15 +1108,13 @@ if progressive_mode then local meta = player:get_meta() local name = player:get_player_name() local data = player_data[name] - local inv_items = data.inv_items - if not inv_items then - inv_items = {} - end - if not data or not data.inv_items then + if not data then return end + local inv_items = data.inv_items or {} + meta:set_string("inv_items", serialize(inv_items)) end