#198 Fix a crash, step 25

This commit is contained in:
kay27 2022-02-17 05:16:08 +04:00
parent e68a9504b2
commit 21fc69efa5
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ function return_fields(player, name)
end
local function set_inventory(player, armor_change_only)
if not mcl_util or not mcl_util.is_player(player) then return end
if minetest.is_creative_enabled(player:get_player_name()) then
if armor_change_only then
-- Stay on survival inventory plage if only the armor has been changed