mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-08-23 02:17:25 +02:00
Merge pull request 'Fix crash when shooting crystals with rocket arrow' (#2645) from fix_rocket_crystal into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2645 Reviewed-by: PrairieWind <prairie.astronomer1@gmail.com>
This commit is contained in:
commit
d3211a9085
@ -20,6 +20,7 @@ end
|
|||||||
|
|
||||||
local function damage_explosion(self, damagemulitplier)
|
local function damage_explosion(self, damagemulitplier)
|
||||||
local p = self.object:get_pos()
|
local p = self.object:get_pos()
|
||||||
|
if not p then return end
|
||||||
mcl_explosions.explode(p, 3, {})
|
mcl_explosions.explode(p, 3, {})
|
||||||
local objects = minetest.get_objects_inside_radius(p, 8)
|
local objects = minetest.get_objects_inside_radius(p, 8)
|
||||||
for _,obj in pairs(objects) do
|
for _,obj in pairs(objects) do
|
||||||
|
Loading…
Reference in New Issue
Block a user