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