Correct damage_groups return (ObjectRef:get_velocity() returns a vector not the required number)

This commit is contained in:
teknomunk 2024-11-30 20:24:51 -06:00
parent 5ec58f50fc
commit 20b5984210
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {