From b844f23d828de62b3611c4096d8f4a0a62e7a4eb Mon Sep 17 00:00:00 2001 From: teknomunk Date: Thu, 5 Sep 2024 06:29:21 -0500 Subject: [PATCH] Revert entity->object for three lines --- mods/ITEMS/vl_projectile/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/vl_projectile/init.lua b/mods/ITEMS/vl_projectile/init.lua index e78f773a3..2319a24dc 100644 --- a/mods/ITEMS/vl_projectile/init.lua +++ b/mods/ITEMS/vl_projectile/init.lua @@ -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) -- Call reverse entity collision hook - local other_object_def = minetest.registered_entities[object.name] or {} - local other_object_vl_projectile = other_object_def._vl_projectile or {} - local hook = (other_object_vl_projectile or {}).on_collide or no_op + local other_entity_def = minetest.registered_entities[object.name] or {} + local other_entity_vl_projectile = other_entity_def._vl_projectile or {} + local hook = (other_entity_vl_projectile or {}).on_collide or no_op hook(object, self) -- Play sounds