[PR #5620] [MERGED] Anticheat ground: drop the claim, never send back or feed the floating kick #6393

Closed
opened 2026-11-03 06:19:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5620
Author: @ludovic111
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/anticheat-ground-no-float


📝 Commits (1)

  • ffcba19 Anticheat ground: drop the claim, never send back or feed the floating kick

📊 Changes

5 files changed (+47 additions, -25 deletions)

View changed files

📝 crates/horizon-anticheat/src/lib.rs (+2 -2)
📝 crates/horizon-client/src/lan/anticheat.rs (+19 -8)
📝 crates/horizon-client/src/lan/hub.rs (+5 -4)
📝 docs/anticheat.md (+5 -4)
📝 tools/anticheat_e2e.py (+16 -7)

📄 Description

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

Fixes #5572: when ground acted, a false claim ended in vanilla's "floating too long" kick instead of the anticheat's own path.

Why

When ground acted, a false ground claim sent the player back to where they were: into the air they claimed to stand in. There they claimed it again, were sent back again (+0.5 VL twice a second, at the same spot) and hovered until vanilla's floating kick. During the 11 minutes ground acted on the official server (23:05–23:17Z on 10-31), four players got that kick about 20 times. Those kicks were neither logged as the anticheat's, nor counted toward a ban.

Change

  • ground's correction is the dropped claim alone, so vanilla's fall damage follows. It is logged as claim dropped, and the player is never sent back.
  • A move whose claim was dropped never counts toward clientIsFloating. A false claim ends in the anticheat's kick (logged, told to the operators, ban at the second kick), or not at all.
  • setback = 0 still makes the check log only. Docs updated.
  • tools/anticheat_e2e.py --check ground now runs with allow-flight off. It fails on any setback, on a missing claim dropped, or on a floating kick.

Who ground flags on the official server

The whole live logs/anticheat.log of 10-31 (112,880 ground lines) splits cleanly:

  • Ordinary players: only isolated flags, never two consecutive ticks, never while rising. That was vanilla's Y-first collision, fixed by #5545.
  • Seven players: runs of consecutive in-air claims up to 475 ticks long, and claims of the ground while rising mid-jump, which no vanilla client sends. They show a no-fall or fly signature: 1,622 to 47,177 flags each. One was jailed after a player report, another banned by an operator. The floating kicks above hit only players of this group.

Proof

  • tools/anticheat_e2e.py --check ground:

    ground: the no-fall and jesus bots are flagged, their claims dropped (never sent back), and kicked by the anticheat (1 of 2 before a ban), never by the floating kick; 5 bots on the ground never flagged
    
  • Vanilla 26.3 client soak, 25 min, ground at the defaults:

    prediction-soak: the vanilla client wandered 25 min on generated terrain (20-120 ms jitter), 819 blocks, spread to new ground 5 times: never flagged
    
  • The flagged players' own spots. The vanilla client was driven at the exact positions where the live server flagged them, on the official server's seed: caves at Y 8 to 41, slow descents, and terrain at X −140,693 and 46,728. 42 minutes over 7 spots, 0 flags:

    • 24 min with the check logging only, on #5545's code: 2,778 standing ticks;
    • 18 min with this branch and ground acting, no floating kick: 936 standing ticks.

    The seed and the soak driver stay out of this PR; the driver comes as its own.

Per-tick cost: none added (one bool per move).

Clean-room: vanilla 26.3 only (ServerGamePacketListenerImpl.handleMovePlayer / tickPlayer's floating check), no other project's code.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 74698584e, 7 min 28 s)

Check Result
Scope ✅ 5 files, +47 −25
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 510 passed (1 min 31 s)
rustfmt ✅ (5 s)
clippy ✅ (1 min 4 s)
tests: horizon-anticheat, horizon-client ✅ 1597 passed (4 min 8 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 22 more

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5620 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/anticheat-ground-no-float` --- ### 📝 Commits (1) - [`ffcba19`](https://github.com/horizon-rust/horizon/commit/ffcba19aa8baacc590da356ee781845577c063c5) Anticheat ground: drop the claim, never send back or feed the floating kick ### 📊 Changes **5 files changed** (+47 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-anticheat/src/lib.rs` (+2 -2) 📝 `crates/horizon-client/src/lan/anticheat.rs` (+19 -8) 📝 `crates/horizon-client/src/lan/hub.rs` (+5 -4) 📝 `docs/anticheat.md` (+5 -4) 📝 `tools/anticheat_e2e.py` (+16 -7) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #5572: when `ground` acted, a false claim ended in vanilla's "floating too long" kick instead of the anticheat's own path. ## Why When `ground` acted, a false ground claim sent the player back to where they were: into the air they claimed to stand in. There they claimed it again, were sent back again (+0.5 VL twice a second, at the same spot) and hovered until vanilla's floating kick. During the 11 minutes `ground` acted on the official server (23:05–23:17Z on 10-31), four players got that kick about 20 times. Those kicks were neither logged as the anticheat's, nor counted toward a ban. ## Change - `ground`'s correction is the dropped claim alone, so vanilla's fall damage follows. It is logged as `claim dropped`, and the player is never sent back. - A move whose claim was dropped never counts toward `clientIsFloating`. A false claim ends in the anticheat's kick (logged, told to the operators, ban at the second kick), or not at all. - `setback = 0` still makes the check log only. Docs updated. - `tools/anticheat_e2e.py --check ground` now runs with allow-flight **off**. It fails on any setback, on a missing `claim dropped`, or on a floating kick. ## Who `ground` flags on the official server The whole live `logs/anticheat.log` of 10-31 (112,880 `ground` lines) splits cleanly: - **Ordinary players:** only isolated flags, never two consecutive ticks, never while rising. That was vanilla's Y-first collision, fixed by #5545. - **Seven players:** runs of consecutive in-air claims up to 475 ticks long, and claims of the ground while rising mid-jump, which no vanilla client sends. They show a no-fall or fly signature: 1,622 to 47,177 flags each. One was jailed after a player report, another banned by an operator. The floating kicks above hit only players of this group. ## Proof - `tools/anticheat_e2e.py --check ground`: ``` ground: the no-fall and jesus bots are flagged, their claims dropped (never sent back), and kicked by the anticheat (1 of 2 before a ban), never by the floating kick; 5 bots on the ground never flagged ``` - **Vanilla 26.3 client soak**, 25 min, `ground` at the defaults: ``` prediction-soak: the vanilla client wandered 25 min on generated terrain (20-120 ms jitter), 819 blocks, spread to new ground 5 times: never flagged ``` - **The flagged players' own spots.** The vanilla client was driven at the exact positions where the live server flagged them, on the official server's seed: caves at Y 8 to 41, slow descents, and terrain at X −140,693 and 46,728. 42 minutes over 7 spots, 0 flags: - 24 min with the check logging only, on #5545's code: 2,778 standing ticks; - 18 min with this branch and `ground` acting, no floating kick: 936 standing ticks. The seed and the soak driver stay out of this PR; the driver comes as its own. Per-tick cost: none added (one bool per move). Clean-room: vanilla 26.3 only (`ServerGamePacketListenerImpl.handleMovePlayer` / `tickPlayer`'s floating check), no other project's code. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 74698584e, 7 min 28 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +47 −25 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 510 passed (1 min 31 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (1 min 4 s) | | tests: horizon-anticheat, horizon-client | ✅ 1597 passed (4 min 8 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 22 more | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:19:53 +07:00
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#6393
No description provided.