From 6f1e95875873dd1f75c8e69e2de259012b6e20b3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 2 Jun 2017 01:14:21 +0200 Subject: [PATCH] =?UTF-8?q?Fix=202=C3=972=20crafting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods/HUD/mcl_inventory/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/HUD/mcl_inventory/init.lua b/mods/HUD/mcl_inventory/init.lua index 5ec6ea472a..1ef9de844c 100644 --- a/mods/HUD/mcl_inventory/init.lua +++ b/mods/HUD/mcl_inventory/init.lua @@ -132,7 +132,7 @@ end minetest.register_on_player_receive_fields(function(player, formname, fields) if fields.quit then drop_fields(player,"craft") - if not minetest.setting_getbool("creative_mode") and formname == "" then + if not minetest.setting_getbool("creative_mode") and (formname == "" or formname == "main") then set_inventory(player) end end