From 9624e998010c6a32da5d069d1df1c238ea82d312 Mon Sep 17 00:00:00 2001 From: levzzz <86072227+levzzz5154@users.noreply.github.com> Date: Sat, 24 Oct 2026 15:56:11 +0500 Subject: [PATCH] Clear a creative player's dig after the block breaks on the server A creative START destroys the block at once and its client never sends STOP, so the kept dig broke whatever was placed in that cell next, every destroy delay, until the player broke something else. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/lan_actions.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/horizon-client/src/game/lan_actions.rs b/crates/horizon-client/src/game/lan_actions.rs index 7fd969a9b..ed40b8e57 100644 --- a/crates/horizon-client/src/game/lan_actions.rs +++ b/crates/horizon-client/src/game/lan_actions.rs @@ -1705,6 +1705,17 @@ impl Game<'_> { g.use_delay -= 1; } }); + // ServerPlayerGameMode.handleBlockBreakAction: a creative + // player's START breaks the block once (destroyAndAck) and + // leaves nothing being destroyed; its client sends no STOP. + // Kept, the dig broke whatever was put there next, every + // destroy delay, for as long as the player broke nothing else. + if digging.is_some() + && host.hub.guests[gi].creative() + && let Some(play) = host.play.get_mut(&conn) + { + play.digging = None; + } } // Player.tick: a different main-hand item resets the attack // strength, and detectEquipmentUpdates gives the guest its modifiers.