From 2654e30a88832f87be89705d2e6a2243aad08f53 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Sat, 26 Mar 2016 13:58:19 -0700 Subject: [PATCH] Recipe.isConditionSatisfied works without modpack --- src/coffee/models/recipe.coffee | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/coffee/models/recipe.coffee b/src/coffee/models/recipe.coffee index 3b27e146f..e0be7547a 100644 --- a/src/coffee/models/recipe.coffee +++ b/src/coffee/models/recipe.coffee @@ -104,9 +104,12 @@ module.exports = class Recipe extends BaseModel if modPack?.findItemByName(@condition.noun)? result = true else if @condition.verb is 'mod' - modPack.eachMod (mod)-> - if mod.name is @condition.noun - result = true + if not modPack? + result = true + else + modPack.eachMod (mod)-> + if mod.name is @condition.noun + result = true if @condition.inverted then result = not result return result