From 08eba994130004848f08868612f198ae756c18cc Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Fri, 13 Mar 2015 22:09:12 -0700 Subject: [PATCH] Don't show recipes for similarly name items On item detail pages for items where multiple mods add an item of the same name, recipes for both items would incorrectly be displayed. --- scripts/deploy | 1 + src/coffee/models/recipe.coffee | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy b/scripts/deploy index 63fd6ed72..8de412e6e 100755 --- a/scripts/deploy +++ b/scripts/deploy @@ -21,6 +21,7 @@ fi if [[ "$TARGET" == "new" ]]; then find "$ROOT" -name ".DS_Store" | xargs rm grunt clean dist + echo "Preparing to upload to S3..." s3cmd sync -r --delete-removed --add-header="cache-control:max-age=1800" "$ROOT/" "s3://new.$SITE/" grunt clean build elif [[ "$TARGET" == "promote" ]]; then diff --git a/src/coffee/models/recipe.coffee b/src/coffee/models/recipe.coffee index 9b906778b..c7dd2d19c 100644 --- a/src/coffee/models/recipe.coffee +++ b/src/coffee/models/recipe.coffee @@ -118,7 +118,6 @@ module.exports = class Recipe extends BaseModel for stack in @output actuallyProduces = not @isPassThroughFor stack.itemSlug @_produces[stack.itemSlug.qualified] = actuallyProduces - @_produces[stack.itemSlug.item] = actuallyProduces return @_produces[itemSlug.qualified] or @_produces[itemSlug.item]