Skip to content

Commit

Permalink
I thought Rust complained about this. Guess not
Browse files Browse the repository at this point in the history
  • Loading branch information
blockmath authored Jun 23, 2024
1 parent c0bd114 commit bd7f995
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/src/sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,8 @@ impl Sim {
let span = error_span!("step", step = self.step);
let _guard = span.enter();

{
for (_entity, ticker_entity) in self.world.query::<&mut TickerEntity>().iter() {
ticker_entity.ticker.tick(self.step);
}
for (_entity, ticker_entity) in self.world.query::<&mut TickerEntity>().iter() {
ticker_entity.ticker.tick(self.step);
}

let mut pending_block_updates: Vec<BlockUpdate> = vec![];
Expand Down

0 comments on commit bd7f995

Please sign in to comment.