From 8f8f045905ca613b7755749fc9520d69263cf4eb Mon Sep 17 00:00:00 2001 From: teknomunk Date: Fri, 30 Aug 2024 16:42:22 -0500 Subject: [PATCH] Fix crash on startup --- mods/ITEMS/vl_projectile/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/vl_projectile/init.lua b/mods/ITEMS/vl_projectile/init.lua index c56e9cf4c..c3c1194b2 100644 --- a/mods/ITEMS/vl_projectile/init.lua +++ b/mods/ITEMS/vl_projectile/init.lua @@ -239,7 +239,7 @@ local function handle_entity_collision(self, entity_def, projectile_def, entity) -- Play sounds local sounds = (projectile_def.sounds or {}) local sound = sounds.on_entity_collide or sounds.on_collision - if type(sound) == "function" then sound = sound(self, entity_def, projectile_def, entity) + if type(sound) == "function" then sound = sound(self, entity_def, projectile_def, entity) end if sound then local arg2 = table.copy(sound[2]) arg2.pos = pos