From 4b776a45d83dc90389d88f4341eff7e608746fb4 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 12 Oct 2026 17:36:33 +0200 Subject: [PATCH] Tick blocks before entities, as ServerLevel.tick does The scheduled and random block ticks now run after the player's digging and before any entity, so items a dispenser shoots or a block pops get their first tick on the tick they appear, as vanilla's do. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index a359cfd0c..2889a2b87 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -2730,6 +2730,15 @@ impl Game<'_> { self.tick_burning(); self.tick_using(); self.tick_hud(); + // The player's digging comes in with its packets, before the level + // ticks; ServerLevel.tick then runs the scheduled and random block + // ticks before any entity, so what they drop or spawn (dispensed + // items, popped crops) moves on the tick it appears, as in vanilla. + self.tick_mining()?; + self.postprocess_chunks()?; + if running { + self.tick_blocks()?; + } if running { self.tick_paintings(); self.tick_item_frames(); @@ -2744,7 +2753,6 @@ impl Game<'_> { self.tick_tridents(); self.tick_rockets(); } - self.tick_mining()?; if running { self.tick_items(); } @@ -2761,9 +2769,7 @@ impl Game<'_> { if running { self.tick_end()?; } - self.postprocess_chunks()?; if running { - self.tick_blocks()?; self.tick_falling()?; self.tick_tnt()?; }