forked from VoxeLibre/VoxeLibre
Fix rocket glitch
This commit is contained in:
parent
570f9bf8c4
commit
3a174b2230
|
@ -33,7 +33,8 @@ local function random_arrow_positions(positions, placement)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function damage_explosion(self, damagemulitplier)
|
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
|
for _,obj in pairs(objects) do
|
||||||
if obj:is_player() then
|
if obj:is_player() then
|
||||||
mcl_util.deal_damage(obj, damagemulitplier - vector.distance(self.object:get_pos(), obj:get_pos()), {type = "explosion"})
|
mcl_util.deal_damage(obj, damagemulitplier - vector.distance(self.object:get_pos(), obj:get_pos()), {type = "explosion"})
|
||||||
|
|
Loading…
Reference in New Issue