From 478364418b85e7b0652f132ea95ed8ec13265091 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Sat, 28 Jan 2017 20:38:58 -0800 Subject: [PATCH] Consider item craftable if multiblock Because the item page use the `craftable` attribute of the item to decide whether to show the "Show Crafting Plan" button, it was not showing that button for multiblocks (which don't have any normal recipes). This change make it so that an item is also considered to be craftable if it has a multiblock recipe. fixes #256 --- src/client/models/game/item.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/models/game/item.coffee b/src/client/models/game/item.coffee index 9ab2545aa..061a5b32e 100644 --- a/src/client/models/game/item.coffee +++ b/src/client/models/game/item.coffee @@ -56,6 +56,7 @@ module.exports = class Item extends BaseModel @_isCraftable = false if @modVersion? @_isCraftable = @modVersion.hasRecipes @slug + @_isCraftable = @_isCraftable or @multiblock? return @_isCraftable