mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Correct splash potions to hit players
This commit is contained in:
parent
9301e03b52
commit
d3c9006e6e
1 changed files with 3 additions and 1 deletions
|
@ -360,8 +360,10 @@ function mcl_potions.is_obj_hit(self, pos)
|
||||||
|
|
||||||
if entity and entity.name ~= self.object:get_luaentity().name then
|
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
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue