From 8dc511bb1b77da67d5428e8bafeab92ad3bfabf4 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 6 Mar 2026 11:12:07 +0500 Subject: fix various regressions from optimization attempts --- azalea/src/pathfinder/simulation.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'azalea/src/pathfinder/simulation.rs') diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs index 72e5e048..82d93370 100644 --- a/azalea/src/pathfinder/simulation.rs +++ b/azalea/src/pathfinder/simulation.rs @@ -152,9 +152,17 @@ impl Simulation { } pub fn tick(&mut self) { + self.run_update_schedule(); + self.run_gametick_schedule(); + } + + pub fn run_update_schedule(&mut self) { self.app.update(); + } + pub fn run_gametick_schedule(&mut self) { self.app.world_mut().run_schedule(GameTick); } + pub fn component(&self) -> T { self.app.world().get::(self.entity).unwrap().clone() } -- cgit v1.2.3