Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

Startup trace: keep finish_open_world's line as native_lifecycle's test reads it

Ludovic Marieef56d07869f2
diff --git a/crates/horizon-client/src/game/integrated.rs b/crates/horizon-client/src/game/integrated.rs
index eaf35e632..ff6432d3a 100644
--- a/crates/horizon-client/src/game/integrated.rs
+++ b/crates/horizon-client/src/game/integrated.rs
@@ -688,8 +688,9 @@ impl Game<'_> {
// `load_world`, with the world `serve` started preparing.
startup::time("server.wait_rest", || self.join_world_rest())?;
self.perf.world_opening();
- let world = startup::time("server.world_prepare", || opening.world?.finish())?;
- startup::time("server.finish_open_world", || self.finish_open_world(world))?;
+ let open_step = startup::step("server.open_world");
+ self.finish_open_world(opening.world?.finish()?)?;
+ drop(open_step);
if let Some(sync) = opening.sync {
sync.adopt(&self.pack_files());
}