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)?
|
if modPack?.findItemByName(@condition.noun)?
|
||||||
result = true
|
result = true
|
||||||
else if @condition.verb is 'mod'
|
else if @condition.verb is 'mod'
|
||||||
modPack.eachMod (mod)->
|
if not modPack?
|
||||||
if mod.name is @condition.noun
|
result = true
|
||||||
result = true
|
else
|
||||||
|
modPack.eachMod (mod)->
|
||||||
|
if mod.name is @condition.noun
|
||||||
|
result = true
|
||||||
|
|
||||||
if @condition.inverted then result = not result
|
if @condition.inverted then result = not result
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user