From c49bb9be7e63c4c5c7463c84e40918aeabaf7ae3 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Mon, 23 Nov 2015 20:22:24 -0800 Subject: [PATCH] Fix "See Crafting Plan" for multiblocks --- src/coffee/models/mod_pack.coffee | 5 ++++- src/scss/templates/item_page.scss | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/coffee/models/mod_pack.coffee b/src/coffee/models/mod_pack.coffee index 185aceca0..938d7dd34 100644 --- a/src/coffee/models/mod_pack.coffee +++ b/src/coffee/models/mod_pack.coffee @@ -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 diff --git a/src/scss/templates/item_page.scss b/src/scss/templates/item_page.scss index 3ad6ee155..77ab406b3 100644 --- a/src/scss/templates/item_page.scss +++ b/src/scss/templates/item_page.scss @@ -18,9 +18,7 @@ All rights reserved. } .mainBody { - .recipes { - .view__full_recipe { width: 100%; margin-top: 3em;