From 403528e54250b1db4817c35319dd0a6d5e2c04b1 Mon Sep 17 00:00:00 2001 From: kay27 Date: Mon, 14 Feb 2022 06:39:47 +0400 Subject: [PATCH] #198 Fix a crash, step 20 --- mods/CORE/mcl_util/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/CORE/mcl_util/init.lua b/mods/CORE/mcl_util/init.lua index 3a634637a..90e44cedc 100644 --- a/mods/CORE/mcl_util/init.lua +++ b/mods/CORE/mcl_util/init.lua @@ -503,6 +503,7 @@ local possible_hackers = {} function mcl_util.is_player(obj) if not obj then return end + if not obj.is_player then return end if not obj:is_player() then return end local name = obj:get_player_name() if not name then return end