forked from MineClone5/MineClone5
#198 Fix a crash, step 25
This commit is contained in:
parent
e68a9504b2
commit
21fc69efa5
|
@ -47,6 +47,7 @@ function return_fields(player, name)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function set_inventory(player, armor_change_only)
|
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 minetest.is_creative_enabled(player:get_player_name()) then
|
||||||
if armor_change_only then
|
if armor_change_only then
|
||||||
-- Stay on survival inventory plage if only the armor has been changed
|
-- Stay on survival inventory plage if only the armor has been changed
|
||||||
|
|
Loading…
Reference in New Issue