diff --git a/init.lua b/init.lua index fb9cae4..b91a425 100644 --- a/init.lua +++ b/init.lua @@ -57,6 +57,7 @@ techage.ore_rarity = tonumber(minetest.settings:get("techage_ore_rarity")) or 1 techage.modified_recipes_enabled = minetest.settings:get_bool("techage_modified_recipes_enabled") ~= false techage.collider_min_depth = tonumber(minetest.settings:get("techage_collider_min_depth")) or -28 techage.recipe_checker_enabled = minetest.settings:get_bool("techage_recipe_checker_enabled") ~= false +techage.stair_aliases_enabled = minetest.settings:get_bool("techage_stair_aliases_enabled") ~= false -- allow to load marshal and sqlite3 techage.IE = minetest.request_insecure_environment() diff --git a/items/moreblocks.lua b/items/moreblocks.lua index f0ebddd..14dea14 100644 --- a/items/moreblocks.lua +++ b/items/moreblocks.lua @@ -68,9 +68,11 @@ if(minetest.get_modpath("moreblocks")) then ndef.sunlight_propagates = true ndef.groups.not_in_creative_inventory = 1 stairsplus:register_all("techage", subname, name, ndef) - register_alias(subname) + if techage.stair_aliases_enabled then + register_alias(subname) + end end - end + end else for _,name in ipairs(NodeNames) do local ndef = minetest.registered_nodes[name] @@ -86,7 +88,9 @@ else ndef.sound, false ) - register_alias(subname) + if techage.stair_aliases_enabled then + register_alias(subname) + end end end end diff --git a/settingtypes.txt b/settingtypes.txt index 088d48e..2223416 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -40,4 +40,7 @@ techage_collider_min_depth (Min. depth to build a TA4 Collider) int -30 techage_expoint_rate_in_min (average waiting time for one expoint) int 60 # For testing purpuses only -techage_recipe_checker_enabled (test techage recipes) bool false \ No newline at end of file +techage_recipe_checker_enabled (test techage recipes) bool false + +# Enables stair aliases (to prevent unknown nodes) +techage_stair_aliases_enabled (Enable stair aliases) bool false \ No newline at end of file