Commit Graph

7 Commits

Author SHA1 Message Date
Zefram
87cfad559b Don't overwrite registered crafts
The crafts_table was being initialised to contain only core-registered
crafts, but this would overwrite any non-core craft types that had
already been registered via unified_inventory.register_craft().  This was
especially likely because the crafts_table initialisation runs on a delay,
following all normal initialisation.  Instead, feed the core-registered
crafts into unified_inventory.register_craft().
2014-04-29 21:38:31 +01:00
Zefram
fa0142c2c0 Look for recipes under an item's aliases
get_all_craft_recipes() returns the recipes that were registered under the
specified name, so asking about an item's canonical name won't see recipes
registered under an alias, and vice versa.  Several mods register recipes
under aliases, so the craft guide was missing that handful of recipes.
To work around it, invert the aliases table and ask explicitly about
each alias.
2014-04-22 16:52:04 -04:00
ShadowNinja
34fe44356d Remove unnecessary recipe table copying 2014-01-19 14:00:49 -05:00
ShadowNinja
26473a8346 Remove trailing whitespace 2014-01-19 13:27:52 -05:00
RealBadAngel
e44deedc53 Fix the bug clearing other than default crafting methods. 2013-10-07 04:16:31 +02:00
ShadowNinja
f974fd8c2c Update 2013-09-28 18:15:37 -04:00
RealBadAngel
e3d391d63f Update mod 2013-09-21 21:40:20 +02:00