Rename ENABLE_CHISEL to enable_chisel
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
2
init.lua
2
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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user