diff --git a/default.lua b/default.lua index 2b7e4ab..ebd8da2 100644 --- a/default.lua +++ b/default.lua @@ -51,4 +51,4 @@ stripped_tree.register_trunk(mod_name, trunk_names) -- Register axes local axe_types = {"axe_wood", "axe_stone", "axe_bronze", "axe_steel", "axe_mese", "axe_diamond"} -if not stripped_tree.ENABLE_CHISEL then stripped_tree.register_axes(mod_name, axe_types) end +if not stripped_tree.enable_chisel then stripped_tree.register_axes(mod_name, axe_types) end diff --git a/ethereal.lua b/ethereal.lua index 2a582a0..035cd3c 100644 --- a/ethereal.lua +++ b/ethereal.lua @@ -16,4 +16,4 @@ stripped_tree.register_trunk(mod_name, trunk_names) -- Register axes local axe_types = {"axe_crystal"} -if not stripped_tree.ENABLE_CHISEL then stripped_tree.register_axes(mod_name, axe_types) end +if not stripped_tree.enable_chisel then stripped_tree.register_axes(mod_name, axe_types) end diff --git a/functions.lua b/functions.lua index 0d4141e..74bec32 100644 --- a/functions.lua +++ b/functions.lua @@ -1,7 +1,7 @@ stripped_tree = {} -- Select between chisel tool or axes. -stripped_tree.ENABLE_CHISEL = core.settings:get_bool("stripped_tree_enable_chisel") +stripped_tree.enable_chisel = core.settings:get_bool("stripped_tree_enable_chisel") -- Check if we are running on a creative server local creative_mode = core.settings:get_bool("creative_mode") @@ -76,7 +76,7 @@ function stripped_tree.register_trunk(mod_name, trunk_names) end -- Function to override axes -if stripped_tree.ENABLE_CHISEL ~= true then +if stripped_tree.enable_chisel ~= true then function stripped_tree.register_axes(mod_n, axe_types) for _, axe_name in ipairs(axe_types) do core.override_item( diff --git a/init.lua b/init.lua index 30e2de7..10033fa 100644 --- a/init.lua +++ b/init.lua @@ -15,7 +15,7 @@ if core.get_modpath("ethereal") then dofile(mpath .. "/ethereal.lua") end if core.get_modpath("moreores") then dofile(mpath .. "/moreores.lua") end -if stripped_tree.ENABLE_CHISEL then +if stripped_tree.enable_chisel then core.register_tool( "stripped_tree:chisel", { description = "Chisel for tree trunks", diff --git a/moreores.lua b/moreores.lua index 20e8f2b..58cc969 100644 --- a/moreores.lua +++ b/moreores.lua @@ -1,4 +1,4 @@ -- Register axes local axe_types = {"axe_mithril", "axe_silver"} -if not stripped_tree.ENABLE_CHISEL then stripped_tree.register_axes("moreores", axe_types) end +if not stripped_tree.enable_chisel then stripped_tree.register_axes("moreores", axe_types) end