From 326ad65158a2c3830662712364bb06fa12d856c4 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sat, 30 Nov 2024 20:24:51 -0600 Subject: [PATCH] Correct damage_groups return (ObjectRef:get_velocity() returns a vector not the required number) --- mods/ITEMS/mcl_fireworks/register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_fireworks/register.lua b/mods/ITEMS/mcl_fireworks/register.lua index 0ccf5ab32..e8c6badc7 100644 --- a/mods/ITEMS/mcl_fireworks/register.lua +++ b/mods/ITEMS/mcl_fireworks/register.lua @@ -36,7 +36,7 @@ local firework_entity = { damages_players = true, maximum_time = 60, damage_groups = function(self) - return { fleshy = self.object:get_velocity() } + return { fleshy = vector.length(self.object:get_velocity()) } end, tracer_texture = "mobs_mc_arrow_particle.png", behaviors = {