mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-06 08:37:30 +01:00
Correct damage_groups return (ObjectRef:get_velocity() returns a vector not the required number)
This commit is contained in:
parent
902393926f
commit
326ad65158
@ -36,7 +36,7 @@ local firework_entity = {
|
|||||||
damages_players = true,
|
damages_players = true,
|
||||||
maximum_time = 60,
|
maximum_time = 60,
|
||||||
damage_groups = function(self)
|
damage_groups = function(self)
|
||||||
return { fleshy = self.object:get_velocity() }
|
return { fleshy = vector.length(self.object:get_velocity()) }
|
||||||
end,
|
end,
|
||||||
tracer_texture = "mobs_mc_arrow_particle.png",
|
tracer_texture = "mobs_mc_arrow_particle.png",
|
||||||
behaviors = {
|
behaviors = {
|
||||||
|
Loading…
Reference in New Issue
Block a user