Fix "See Crafting Plan" for multiblocks

This commit is contained in:
Andrew Miner
2015-11-23 20:22:24 -08:00
parent 7dbfd25ef3
commit c49bb9be7e
2 changed files with 4 additions and 3 deletions
+4 -1
View File
@@ -79,7 +79,10 @@ module.exports = class ModPack extends BaseModel
result.modVersion = @_mods[0].activeVersion
craftingUrlInventory = new Inventory modPack:this
craftingUrlInventory.add itemSlug
if item?.multiblock?
craftingUrlInventory.addInventory item.multiblock.inventory
else
craftingUrlInventory.add itemSlug
result.craftingUrl = Url.crafting inventoryText:craftingUrlInventory.unparse()
result.iconUrl = Url.itemIcon result