From bb6b3a4ee58cfc1383847e7d74e460e0dfd3ef93 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 30 Sep 2019 11:17:01 +0200 Subject: [PATCH] Show recipes for force-alised items --- init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.lua b/init.lua index e0d71a5..4bfe149 100644 --- a/init.lua +++ b/init.lua @@ -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.