Fix "See Crafting Plan" for multiblocks
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user