Expand variable scope. Fixes #1361.

This commit is contained in:
JJ 2023-01-21 08:37:13 -05:00
parent 95811621d0
commit c962dcf564

View file

@ -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;