mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 08:31:08 +01:00
Make splash, lingering and othe projectiles hit players
This commit is contained in:
parent
0270ce8a8d
commit
ff0128394d
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ function mod.collides_with_entities(self, dtime, entity_def, projectile_def)
|
|||
local object = objects[i]
|
||||
local entity = object:get_luaentity()
|
||||
|
||||
if entity and entity.name ~= self.object:get_luaentity().name then
|
||||
if object ~= self.object and (not entity or entity.name ~= self.name) then
|
||||
if object:is_player() then
|
||||
return handle_entity_collision(self, entity_def, projectile_def, object)
|
||||
elseif (entity.is_mob or entity._hittable_by_projectile) then
|
||||
|
|
Loading…
Reference in a new issue