mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-30 06:43:45 +01:00
Fix leaking global in mcl_explosions
parent
6df30dc0dc
commit
2ec66fc61b
@ -366,7 +366,7 @@ function mcl_explosions.explode(pos, strength, info, puncher)
|
|||||||
if not sphere_shapes[radius] then
|
if not sphere_shapes[radius] then
|
||||||
sphere_shapes[radius] = compute_sphere_rays(radius)
|
sphere_shapes[radius] = compute_sphere_rays(radius)
|
||||||
end
|
end
|
||||||
shape = sphere_shapes[radius]
|
local shape = sphere_shapes[radius]
|
||||||
|
|
||||||
trace_explode(pos, strength, shape, radius, (info and info.drop_chance) or 1 / strength, info.fire == true, puncher)
|
trace_explode(pos, strength, shape, radius, (info and info.drop_chance) or 1 / strength, info.fire == true, puncher)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user