mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 15:02:03 -08:00
Auto-add produce to liquids (#9666)
This commit is contained in:
parent
e97dc7a960
commit
4cacb79ccd
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue