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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user