mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Revert entity->object for three lines
This commit is contained in:
parent
9b38a4c4f9
commit
b844f23d82
1 changed files with 3 additions and 3 deletions
|
@ -286,9 +286,9 @@ local function handle_entity_collision(self, entity_def, projectile_def, object)
|
||||||
(projectile_def.on_collide_with_entity or no_op)(self, pos, object)
|
(projectile_def.on_collide_with_entity or no_op)(self, pos, object)
|
||||||
|
|
||||||
-- Call reverse entity collision hook
|
-- Call reverse entity collision hook
|
||||||
local other_object_def = minetest.registered_entities[object.name] or {}
|
local other_entity_def = minetest.registered_entities[object.name] or {}
|
||||||
local other_object_vl_projectile = other_object_def._vl_projectile or {}
|
local other_entity_vl_projectile = other_entity_def._vl_projectile or {}
|
||||||
local hook = (other_object_vl_projectile or {}).on_collide or no_op
|
local hook = (other_entity_vl_projectile or {}).on_collide or no_op
|
||||||
hook(object, self)
|
hook(object, self)
|
||||||
|
|
||||||
-- Play sounds
|
-- Play sounds
|
||||||
|
|
Loading…
Reference in a new issue