forked from MineClone5/MineClone5
#198 Fix a crash, step 20
This commit is contained in:
parent
e15a82b865
commit
403528e542
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue