Localize various unneeded global variables
This commit is contained in:
parent
a40dec6da9
commit
16bb9b8901
10 changed files with 30 additions and 28 deletions
|
@ -345,7 +345,7 @@ if not fire_enabled then
|
|||
chance = 2,
|
||||
catch_up = false,
|
||||
action = function(pos)
|
||||
function try_ignite(airs)
|
||||
local function try_ignite(airs)
|
||||
while #airs > 0 do
|
||||
local r = math.random(1, #airs)
|
||||
if minetest.find_node_near(airs[r], 1, {"group:flammable", "group:flammable_lava"}) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue