refactor
This commit is contained in:
parent
102835507f
commit
4e5bbd7bb1
8 changed files with 149 additions and 46 deletions
23
me.lua
Normal file
23
me.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
local me = {}
|
||||
|
||||
me.name = "bzzirconium"
|
||||
|
||||
function me.use_cermet()
|
||||
return me.get_setting("bzzirconium-enable-intermediates") == "yes"
|
||||
end
|
||||
|
||||
function me.get_setting(name)
|
||||
if settings.startup[name] == nil then
|
||||
return nil
|
||||
end
|
||||
return settings.startup[name].value
|
||||
end
|
||||
|
||||
me.bypass = {}
|
||||
if me.get_setting(me.name.."-recipe-bypass") then
|
||||
for recipe in string.gmatch(me.get_setting(me.name.."-recipe-bypass"), '[^",%s]+') do
|
||||
me.bypass[recipe] = true
|
||||
end
|
||||
end
|
||||
|
||||
return me
|
||||
Loading…
Add table
Add a link
Reference in a new issue