circular saw works now; still need to do compatabilit and testing

This commit is contained in:
flux
2022-06-14 16:30:41 -07:00
parent b9eed16713
commit a2c8e2db8e
12 changed files with 410 additions and 259 deletions

View File

@ -3,8 +3,14 @@
-- existing servers
local api = stairsplus.api
local legacy_mode = stairsplus.settings.legacy_mode
function stairsplus:register_all(modname, subname, recipeitem, fields)
api.register_all(recipeitem, fields)
if legacy_mode then
api.register_group(recipeitem, "legacy", fields)
else
api.register_group(recipeitem, "common", fields)
end
local old_name = ("%s:%s"):format(modname, subname)
if old_name ~= recipeitem then