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 result.modVersion = @_mods[0].activeVersion
craftingUrlInventory = new Inventory modPack:this 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.craftingUrl = Url.crafting inventoryText:craftingUrlInventory.unparse()
result.iconUrl = Url.itemIcon result result.iconUrl = Url.itemIcon result
-2
View File
@@ -18,9 +18,7 @@ All rights reserved.
} }
.mainBody { .mainBody {
.recipes { .recipes {
.view__full_recipe { .view__full_recipe {
width: 100%; width: 100%;
margin-top: 3em; margin-top: 3em;