From bd9b15466b3ef0eb906e29ba6a590b0cdcb24e09 Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 26 Jun 2020 21:30:35 -0400 Subject: [PATCH] Correct splash issue with mob-detection --- mods/ITEMS/mcl_potions/lingering.lua | 1 - mods/ITEMS/mcl_potions/splash.lua | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_potions/lingering.lua b/mods/ITEMS/mcl_potions/lingering.lua index 9732ae07dc..28f524922b 100644 --- a/mods/ITEMS/mcl_potions/lingering.lua +++ b/mods/ITEMS/mcl_potions/lingering.lua @@ -53,7 +53,6 @@ local function add_lingering_effect(pos, color, def) for _, obj in pairs(minetest.get_objects_inside_radius(pos, d)) do local entity = obj:get_luaentity() - if obj:is_player() or entity._cmi_is_mob then -- if obj:is_player() then print(obj:is_player()) print(obj:get_player_name()) end diff --git a/mods/ITEMS/mcl_potions/splash.lua b/mods/ITEMS/mcl_potions/splash.lua index 68da6affa7..3a2550cadc 100644 --- a/mods/ITEMS/mcl_potions/splash.lua +++ b/mods/ITEMS/mcl_potions/splash.lua @@ -61,7 +61,8 @@ local function register_splash(name, descr, color, def) }) self.object:remove() for _,obj in pairs(minetest.get_objects_inside_radius(pos, 4)) do - + + local entity = obj.get_luaentity() if obj:is_player() or entity._cmi_is_mob then local pos2 = obj:get_pos()