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

@@ -1,4 +1,4 @@
-- Register axes
local axe_types = {"axe_mithril", "axe_silver"}
if stripped_tree.axes_strip_trees then stripped_tree.register_axes("moreores", axe_types) end
stripped_tree.register_axes("moreores", axe_types)