mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-08 01:43:59 +07:00
Auto-add produce to liquids (#9666)
This commit is contained in:
parent
e97dc7a960
commit
4cacb79ccd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user