Recipe.isConditionSatisfied works without modpack
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user