From 620d8a7804c74fd9fd4ecc52151059163c383859 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 18 Nov 2017 09:03:49 +0100 Subject: [PATCH] Fix previous creative inventory button not working after death --- mods/HUD/mcl_inventory/creative.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mods/HUD/mcl_inventory/creative.lua b/mods/HUD/mcl_inventory/creative.lua index 89ae703e6a..7f96e13ee0 100644 --- a/mods/HUD/mcl_inventory/creative.lua +++ b/mods/HUD/mcl_inventory/creative.lua @@ -218,8 +218,14 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz "listring[current_player;main]".. "listring[detached:trash;main]" - if page ~= nil then name = page end + if page ~= nil then + name = page + if players[playername] then + players[playername].page = page + end + end bg[name] = "crafting_creative_bg.png" + local inv_bg = "crafting_inventory_creative.png" if name == "inv" then inv_bg = "crafting_inventory_creative_survival.png"