Expand variable scope. Fixes #1361.
This commit is contained in:
parent
95811621d0
commit
c962dcf564
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue