[GH-ISSUE #5860] Anticheat prediction: item uses a few ticks apart from the server's are flagged #1858

Closed
opened 2026-11-02 15:50:12 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ludovic111 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5860

Originally assigned to: @ludovic111 on GitHub.

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

On the official server (prediction check, log only), players using an item while walking get flagged in bursts, moving at the item-use speed (0.043 blocks/tick) while the replay walks faster:

(1 tick; off +0.121 +0.000 -0.065, moved 0.045, ground)
(3 ticks; off +0.148 +0.000 -0.053, moved 0.043, ground)   <- a shield in the off hand

One player reached VL 131 in 10 seconds. Reproduced with a real Horizon client (tools/anticheat_e2e.py, a golden apple eaten while walking with the use key held, then the next one): flagged and sent back.

Cause: the client starts, stops and finishes a use on its own ticks, and the server on its own. The replay plays each client tick with the server's state at the end of the server tick that heard it, and only tries the other state on the one tick the server's changed. A use finished and started again with the key held, or a shield raised in quick taps, runs a few ticks apart on each side, more with an uneven ping.

Fix: for 10 ticks after the server's item use starts or stops, the replay also tries the state it had before. A client moving at full speed through a use (a no-slow) is still caught once the window has passed.

Originally created by @ludovic111 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5860 Originally assigned to: @ludovic111 on GitHub. > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. On the official server (prediction check, log only), players using an item while walking get flagged in bursts, moving at the item-use speed (0.043 blocks/tick) while the replay walks faster: ``` (1 tick; off +0.121 +0.000 -0.065, moved 0.045, ground) (3 ticks; off +0.148 +0.000 -0.053, moved 0.043, ground) <- a shield in the off hand ``` One player reached VL 131 in 10 seconds. Reproduced with a real Horizon client (`tools/anticheat_e2e.py`, a golden apple eaten while walking with the use key held, then the next one): flagged and sent back. Cause: the client starts, stops and finishes a use on its own ticks, and the server on its own. The replay plays each client tick with the server's state at the end of the server tick that heard it, and only tries the other state on the one tick the server's changed. A use finished and started again with the key held, or a shield raised in quick taps, runs a few ticks apart on each side, more with an uneven ping. Fix: for 10 ticks after the server's item use starts or stops, the replay also tries the state it had before. A client moving at full speed through a use (a no-slow) is still caught once the window has passed.
bsakaguchi 2026-11-02 15:50:12 +07:00
Author
Owner

@ludovic111 commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6556889937 --> @ludovic111 commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1858
No description provided.