fix local variable access

This commit is contained in:
FaceDeer 2022-09-06 22:50:01 -06:00
parent 77b990a697
commit efeae89ab9
1 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@ df_dependencies.mods_required = {}
df_dependencies.select_required = function(def)
local ret
for _, dependency in ipairs(def) do
mod = dependency[1]
item = dependency[2]
local mod = dependency[1]
local item = dependency[2]
df_dependencies.mods_required[mod] = true
if minetest.get_modpath(mod) then
ret = item
@ -20,8 +20,8 @@ end
df_dependencies.select_optional = function(def)
local ret
for _, dependency in ipairs(def) do
mod = dependency[1]
item = dependency[2]
local mod = dependency[1]
local item = dependency[2]
df_dependencies.mods_required[mod] = true
if minetest.get_modpath(mod) then
ret = item