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