mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Fix leaking global in texture pack menu
This commit is contained in:
parent
b9bc8dadb2
commit
d2b5ba83b0
1 changed files with 4 additions and 4 deletions
|
@ -17,10 +17,10 @@
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
local function filter_texture_pack_list(list)
|
local function filter_texture_pack_list(list)
|
||||||
retval = {"None"}
|
local retval = {"None"}
|
||||||
for _,i in ipairs(list) do
|
for _, item in ipairs(list) do
|
||||||
if i~="base" then
|
if item ~= "base" then
|
||||||
table.insert(retval, i)
|
table.insert(retval, item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return retval
|
return retval
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue