Auto-add produce to liquids (#9666)

This commit is contained in:
MEEPofFaith 2024-03-25 10:31:03 -07:00 committed by GitHub
parent e97dc7a960
commit 4cacb79ccd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1102,8 +1102,8 @@ public class ContentParser{
}
//all items have a produce requirement unless already specified
if(object instanceof Item i && !node.objectives.contains(o -> o instanceof Produce p && p.content == i)){
node.objectives.add(new Produce(i));
if((unlock instanceof Item || unlock instanceof Liquid) && !node.objectives.contains(o -> o instanceof Produce p && p.content == unlock)){
node.objectives.add(new Produce(unlock));
}
//remove old node from parent