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:
@@ -56,6 +56,7 @@ module.exports = class Item extends BaseModel
|
||||
@_isCraftable = false
|
||||
if @modVersion?
|
||||
@_isCraftable = @modVersion.hasRecipes @slug
|
||||
@_isCraftable = @_isCraftable or @multiblock?
|
||||
|
||||
return @_isCraftable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user