fix: break automatically when all trees have composted
This commit is contained in:
parent
41c70e02db
commit
912aca2a89
|
@ -144,6 +144,10 @@ fn main() -> io::Result<()> {
|
|||
break;
|
||||
}
|
||||
|
||||
if scheduled_trees.len() == 0 {
|
||||
break;
|
||||
}
|
||||
|
||||
let mut trees_to_plant: Vec<state::Tree> = Vec::new();
|
||||
let mut rules_to_define: Vec<state::Rule> = Vec::new();
|
||||
let mut trees_to_wake: Vec<u16> = Vec::new();
|
||||
|
|
Loading…
Reference in New Issue