From d3c9006e6ec1733c85bc94434b54c502473ddf3c Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 30 Jun 2020 20:54:07 -0400 Subject: [PATCH] Correct splash potions to hit players --- mods/ITEMS/mcl_potions/functions.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 0b27bdfd..08ca9b5d 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -360,8 +360,10 @@ function mcl_potions.is_obj_hit(self, pos) if entity and entity.name ~= self.object:get_luaentity().name then - if object:is_player() or entity._cmi_is_mob then return true end + if entity._cmi_is_mob then return true end + elseif object:is_player() then + return true end end