From 571ba4ce307bad6d2521b51b3c8fbb8552fff0fa Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 2 Jun 2017 20:02:24 +0200 Subject: [PATCH] Don't reset creative inv. formspec after close --- mods/HUD/mcl_inventory/creative.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/HUD/mcl_inventory/creative.lua b/mods/HUD/mcl_inventory/creative.lua index 4400bcfe2c..9d778799cb 100644 --- a/mods/HUD/mcl_inventory/creative.lua +++ b/mods/HUD/mcl_inventory/creative.lua @@ -358,7 +358,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if not minetest.setting_getbool("creative_mode") then return end - if formname ~= "" then + if formname ~= "" or fields.quit == "true" then + -- No-op if formspec closed or not player inventory (formname == "") return end