From c962dcf5646d0b052d581d7fae6df02a2f3a50e7 Mon Sep 17 00:00:00 2001 From: JJ Date: Sat, 21 Jan 2023 08:37:13 -0500 Subject: [PATCH] Expand variable scope. Fixes #1361. --- akanon/clockwork_scrubber.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/akanon/clockwork_scrubber.lua b/akanon/clockwork_scrubber.lua index 48571fd71..a63ce25b4 100644 --- a/akanon/clockwork_scrubber.lua +++ b/akanon/clockwork_scrubber.lua @@ -1,8 +1,9 @@ -- Converted to .lua by Speedz -- items: 12164, 12162, 12167 +local miner628 = 0; + function event_spawn(e) - local miner628 = 0; local random_result = math.random(100); if(random_result <= 5) then miner628 = 1;