Initial commit
This commit is contained in:
commit
69ef3d6dd4
89 changed files with 960 additions and 0 deletions
23
me.lua
Normal file
23
me.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
local me = {}
|
||||
|
||||
me.name = "bzmod"
|
||||
|
||||
function me.mod_setting()
|
||||
return me.get_setting("bzmod-setting") == "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