From 21fc69efa5cb2e01df5e302edcfec7377bb2ed38 Mon Sep 17 00:00:00 2001 From: kay27 Date: Thu, 17 Feb 2022 05:16:08 +0400 Subject: [PATCH] #198 Fix a crash, step 25 --- mods/HUD/mcl_inventory/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/HUD/mcl_inventory/init.lua b/mods/HUD/mcl_inventory/init.lua index 6aa4c7c78..0a8b9a7bc 100644 --- a/mods/HUD/mcl_inventory/init.lua +++ b/mods/HUD/mcl_inventory/init.lua @@ -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