From 04094f97fad624b1624836c3cf3520ec41024887 Mon Sep 17 00:00:00 2001 From: kay27 Date: Mon, 14 Feb 2022 06:32:51 +0400 Subject: [PATCH] #198 Fix a crash, step 16 --- mods/PLAYER/mcl_playerplus/init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index 9208f5862..93db2734e 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -17,8 +17,6 @@ local is_sprinting = mcl_sprint.is_sprinting local exhaust = mcl_hunger.exhaust local playerphysics = playerphysics -local is_player = mcl_util.is_player - local vector = vector local math = math -- Internal player state @@ -37,7 +35,7 @@ local function player_collision(player) for _,object in pairs(minetest.get_objects_inside_radius(pos, width)) do - if object and (is_player(object) + if object and ((mcl_util and mcl_util.is_player(object)) or (object:get_luaentity()._cmi_is_mob == true and object ~= player)) then local pos2 = object:get_pos()