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
This commit is contained in:
Andrew Miner
2017-01-28 20:38:58 -08:00
parent ed96cf0c71
commit 478364418b
+1
View File
@@ -56,6 +56,7 @@ module.exports = class Item extends BaseModel
@_isCraftable = false
if @modVersion?
@_isCraftable = @modVersion.hasRecipes @slug
@_isCraftable = @_isCraftable or @multiblock?
return @_isCraftable