Fix rocket glitch

This commit is contained in:
epCode 2021-10-15 12:00:16 -07:00
parent 570f9bf8c4
commit 3a174b2230
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ local function random_arrow_positions(positions, placement)
end
local function damage_explosion(self, damagemulitplier)
local objects = minetest.get_objects_inside_radius(self.object:get_pos(), damagemulitplier * 8)
mcl_explosions.explode(self.object:get_pos(), 3, {})
local objects = minetest.get_objects_inside_radius(self.object:get_pos(), 8)
for _,obj in pairs(objects) do
if obj:is_player() then
mcl_util.deal_damage(obj, damagemulitplier - vector.distance(self.object:get_pos(), obj:get_pos()), {type = "explosion"})