add option to disable crafting schemata

This commit is contained in:
flux 2022-09-22 08:28:55 -07:00
parent 635f0af8e2
commit 7414e274af
No known key found for this signature in database
GPG Key ID: 9333B27816848A15
4 changed files with 9 additions and 2 deletions

View File

@ -42,6 +42,9 @@ stairsplus.legacy_mode (legacy mode) bool true
# automatically try to rotate nodes when placed. the mechanic is sometimes confusing.
stairsplus.legacy_place_mechanic (use legacy place mecahnic) bool true
# allows crafting shaped nodes in addition to cutting them
stairsplus.crafting_schemata_enabled (enable crafting schemata) bool true
# enable registering stairsplus nodes for basic_materials
stairsplus_legacy.basic_materials () bool true

View File

@ -1,7 +1,6 @@
local api = stairsplus.api
local register_craft_schema = api.register_craft_schema
---- panel_8
register_craft_schema({

View File

@ -35,7 +35,10 @@ stairsplus.dofile("api", "init")
stairsplus.dofile("shapes", "init")
stairsplus.dofile("groups", "init")
stairsplus.dofile("craft_schemas", "init")
if stairsplus.settings.crafting_schemata_enabled then
stairsplus.dofile("craft_schemas", "init")
end
stairsplus.dofile("resources", "init")
stairsplus.dofile("circular_saw")

View File

@ -26,4 +26,6 @@ stairsplus.settings = {
legacy_mode = s:get_bool("stairsplus.legacy_mode", true),
legacy_place_mechanic = s:get_bool("stairsplus.legacy_place_mechanic", true),
crafting_schemata_enabled = s:get_bool("stairsplus.crafting_schemata_enabled", true),
}