From 4cacb79ccd2e6aaee7fc726c54b5af68327ea3e1 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Mon, 25 Mar 2024 10:31:03 -0700 Subject: [PATCH] Auto-add produce to liquids (#9666) --- core/src/mindustry/mod/ContentParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/mod/ContentParser.java b/core/src/mindustry/mod/ContentParser.java index 093f9fd98f..40da31c7d1 100644 --- a/core/src/mindustry/mod/ContentParser.java +++ b/core/src/mindustry/mod/ContentParser.java @@ -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