mcl_inventory: Don't store inv. size globally

This commit is contained in:
Wuzzy 2017-06-02 22:46:39 +02:00
parent f8bb3bd2ca
commit 4b5fce18ad
2 changed files with 55 additions and 29 deletions

View file

@ -40,7 +40,7 @@ local function set_inventory(player, armor_change_only)
if minetest.setting_getbool("creative_mode") then
if armor_change_only then
-- Stay on survival inventory plage if only the armor has been changed
mcl_inventory.set_creative_formspec(player, 0, 0, nil, "inv")
mcl_inventory.set_creative_formspec(player, 0, 0, nil, nil, "inv")
else
mcl_inventory.set_creative_formspec(player, 0, 1)
end