From 2ec66fc61ba0d2efce9fc053e4f21c26cd226bb1 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 8 May 2020 18:01:33 +0200 Subject: [PATCH] Fix leaking global in mcl_explosions --- mods/CORE/mcl_explosions/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/CORE/mcl_explosions/init.lua b/mods/CORE/mcl_explosions/init.lua index c42bc3fec..bb2ed9837 100644 --- a/mods/CORE/mcl_explosions/init.lua +++ b/mods/CORE/mcl_explosions/init.lua @@ -366,7 +366,7 @@ function mcl_explosions.explode(pos, strength, info, puncher) if not sphere_shapes[radius] then sphere_shapes[radius] = compute_sphere_rays(radius) 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)