alias anvil mod stuff if the anvil mod is removed

This commit is contained in:
flux 2022-10-11 15:00:25 -07:00
parent c0d63eb1e7
commit 788f0bc343
No known key found for this signature in database
GPG Key ID: 9333B27816848A15
1 changed files with 4 additions and 0 deletions

View File

@ -32,4 +32,8 @@ if cottages.has.anvil then
minetest.clear_craft({output = "anvil:hammer"})
minetest.register_alias_force("anvil:hammer", "cottages:hammer")
else
minetest.register_alias("anvil:anvil", "cottages:anvil")
minetest.register_alias("anvil:hammer", "cottages:hammer")
end