Show recipes for force-alised items

This commit is contained in:
Jean-Patrick Guerrero 2019-09-30 11:17:01 +02:00
parent a50a99836a
commit bb6b3a4ee5
1 changed files with 7 additions and 0 deletions

View File

@ -881,6 +881,13 @@ core.register_alias = function(old, new)
alias_cache[new] = old
end
local old_register_alias_force = core.register_alias_force
core.register_alias_force = function(old, new)
old_register_alias_force(old, new)
alias_cache[new] = old
end
--[[ As `core.get_craft_recipe` and `core.get_all_craft_recipes` do not
return the replacements and toolrepair, we have to override
`core.register_craft` and do some reverse engineering.