Make the register_axes function always available

It’s still a no-op if the required setting is disabled, but it removes some strain from the Lua interpreter by being
unconditionally available.
This commit is contained in:
2025-12-09 14:49:03 +01:00
parent 8a2d735aa6
commit a4f537f625
4 changed files with 17 additions and 17 deletions

View File

@@ -9,4 +9,4 @@ stripped_tree.register_strippable_trunk("default:pine_tree", "default:pine_wood"
-- Register axes
local axe_types = {"axe_wood", "axe_stone", "axe_bronze", "axe_steel", "axe_mese", "axe_diamond"}
if stripped_tree.axes_strip_trees then stripped_tree.register_axes(mod_name, axe_types) end
stripped_tree.register_axes(mod_name, axe_types)