mcl_inventory: Don't store inv. size globally
This commit is contained in:
parent
f8bb3bd2ca
commit
4b5fce18ad
2 changed files with 55 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue