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

@@ -13,4 +13,4 @@ stripped_tree.register_strippable_trunk("ethereal:palm_trunk", "ethereal:palm_wo
-- Register axes
local axe_types = {"axe_crystal"}
if stripped_tree.axes_strip_trees then stripped_tree.register_axes(mod_name, axe_types) end
stripped_tree.register_axes(mod_name, axe_types)