Closed bell07 closed 4 years ago
The discussion was moved to https://github.com/minetest-mods/craftguide/issues/92, but basically this one is still open. Can you pls. reopen this #91?
The expected behaviour is the "basic_materials:silicon" and "mesecons_materials:silicon" are shown merged in craftguide because of minetest.register_alias_force(). Currently they are 2x items in craftguide, one with recipe how to craft and the other with item usages.
Still does not work. The 3x Sand + 1x Iron Lump is again not in the list
The silicon lump needs to be in usages of sand...
Found solution that works for me. The issue is in handle_aliases at: local recipes = recipes_cache[oldname]
In my setup the core.get_all_craft_recipes('basic_materials:silicon')
returned empty table (registered_item), but core.get_all_craft_recipes('mesecons_materials:silicon')
returns the recipe (oldname).
Added recipes_cache[oldname] = recipes_cache[oldname] or get_all_recipes(oldname)
before the line, and the recipe is visible now ;-)
It does not work again after last changes :-( And I do not see the reason... Please re-test it with both mods (mesecons_materials + basic_materials) enabled.
Nothing has changed in this part. Please conduct your investigation yourself and provide a patch.
As reported in https://forum.minetest.net/viewtopic.php?f=15&p=358409#p358409, the recipe for Silicon lump is not shown in craftguide, but is crafteable. I looked into the code and it seems to be an issue with minetest.register_alias_force()
Homedecor basic_materials:
Mesecons mesecons_materials:
Looks wrong defined in homedecor, but should be still be shown in craftguide