mirror of
https://github.com/minetest-mods/stained_glass.git
synced 2024-11-15 22:40:20 +01:00
Undeclared oldname to local
Removes error reported by minetest regarding undefined global.
This commit is contained in:
parent
173569fd12
commit
5644b08229
2
init.lua
2
init.lua
|
@ -216,7 +216,7 @@ function stained_glass_define(arg)
|
|||
local aliasname
|
||||
minetest.register_alias( "stained_glass:" .. code, "stained_glass:" .. name)
|
||||
if string.match(name,"redviolet") then
|
||||
oldname=name
|
||||
local oldname=name
|
||||
aliasname=string.gsub(name, "redviolet","red_violet") -- need to support red_violet existence, too.
|
||||
minetest.register_alias( "stained_glass:" .. aliasname, "stained_glass:" .. oldname)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user