mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 12:33:43 +01:00
Show recipes for force-alised items
This commit is contained in:
parent
a50a99836a
commit
bb6b3a4ee5
7
init.lua
7
init.lua
@ -881,6 +881,13 @@ core.register_alias = function(old, new)
|
|||||||
alias_cache[new] = old
|
alias_cache[new] = old
|
||||||
end
|
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
|
--[[ As `core.get_craft_recipe` and `core.get_all_craft_recipes` do not
|
||||||
return the replacements and toolrepair, we have to override
|
return the replacements and toolrepair, we have to override
|
||||||
`core.register_craft` and do some reverse engineering.
|
`core.register_craft` and do some reverse engineering.
|
||||||
|
Loading…
Reference in New Issue
Block a user