fix: break automatically when all trees have composted

This commit is contained in:
Nat 2024-12-26 17:32:20 -04:00
parent 41c70e02db
commit 912aca2a89
1 changed files with 4 additions and 0 deletions

View File

@ -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();