[PR #3954] [MERGED] Fix server and LAN-host behaviour: spam kicks, straw beds, shulkers, ravagers, item frames, advancements and tab list #5318

Closed
opened 2026-11-03 05:11:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3954
Author: @kacpherek
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/split-server


📝 Commits (10+)

  • 1474b11 Break a straw bed when its sleeper gets up in the Overworld
  • 4fe17c2 Show spectating guests as invisible to others
  • 6befa86 Scale the LAN host's entity tracking by the Entity Distance option
  • 126f997 Make live shulkers solid for the player
  • a63b69c Fire thrown-item pickup advancement for piglins
  • 765ed5d Fire the thrown-item pickup advancement for the player
  • d5d42c8 Let ravagers trample crops they walk through
  • 62c4d91 Send the hat layer change to every player's tab list
  • ec6ea46 Break item frames caught in an explosion
  • 0703ae6 Keep a mannequin's profile when it is saved and loaded

📊 Changes

17 files changed (+411 additions, -21 deletions)

View changed files

📝 crates/horizon-client/src/entity_nbt.rs (+127 -0)
📝 crates/horizon-client/src/game.rs (+8 -0)
📝 crates/horizon-client/src/game/advancements.rs (+25 -0)
📝 crates/horizon-client/src/game/allays.rs (+5 -0)
📝 crates/horizon-client/src/game/beds.rs (+10 -0)
📝 crates/horizon-client/src/game/dedicated.rs (+2 -0)
📝 crates/horizon-client/src/game/explosion.rs (+9 -2)
📝 crates/horizon-client/src/game/frames.rs (+40 -0)
📝 crates/horizon-client/src/game/ghasts.rs (+5 -3)
📝 crates/horizon-client/src/game/integrated.rs (+15 -2)
📝 crates/horizon-client/src/game/lan.rs (+20 -2)
📝 crates/horizon-client/src/game/lan_actions.rs (+23 -1)
📝 crates/horizon-client/src/game/lan_chat.rs (+37 -0)
📝 crates/horizon-client/src/game/piglins.rs (+16 -0)
📝 crates/horizon-client/src/game/respawn_anchor.rs (+16 -8)
📝 crates/horizon-client/src/lan/hub.rs (+25 -2)
📝 crates/horizon-client/src/mobs/ravager.rs (+28 -1)

📄 Description

What and why

  • Break a straw bed when its sleeper gets up in the Overworld: the bed stayed in place after waking, but the Overworld's straw_bed_rule has destroy_on_leave.
  • Show spectating guests as invisible to others: a spectator guest sent no invisible flag, so others saw a full model.
  • Scale the LAN host's entity tracking by the Entity Distance option: the integrated host ignored entityDistanceScaling, so guests saw entities at the default range.
  • Make live shulkers solid for the player: walking ignored live shulkers, so the player passed through them.
  • Fire the thrown-item pickup advancement for piglins: gold you threw and a piglin took never granted Oh Shiny.
  • Fire the thrown-item pickup advancement for the player: picking up an item the player threw never granted You've Got a Friend in Me.
  • Let ravagers trample crops they walk through: they only broke leaves, so crops in their path survived (needs mobGriefing).
  • Send the hat layer change to every player's tab list: a guest toggling the hat layer was not announced, and the join entry now carries the hat state.
  • Break item frames caught in an explosion: blasts never reached item frames, so they stayed up with their item.
  • Keep a mannequin's profile when it is saved and loaded: a reloaded mannequin wore the default skin.
  • Kick guests who spam chat or commands: chat-spam-threshold-seconds and command-spam-threshold-seconds were read but unused; operators are exempt.

Vanilla reference

  • Straw bed: AbstractBedBlock.onStopSleeping (AbstractBedBlock.java:119), StrawBedBlock.destroyBed (StrawBedBlock.java)
  • Spectator invisibility: ServerPlayer.updateInvisibilityStatus (ServerPlayer.java:2054)
  • Entity Distance: IntegratedServer.getScaledTrackingDistance (IntegratedServer.java:451)
  • Shulker collision: Shulker.canBeCollidedWith (Shulker.java:487), Entity.canCollideWith
  • Piglin pickup advancement: LivingEntity.onItemPickup (LivingEntity.java:3429)
  • Player pickup advancement: ServerPlayer.onItemPickup (ServerPlayer.java:2324)
  • Ravager crops: CropBlock.entityInside (CropBlock.java:153)
  • Hat layer: ServerGamePacketListenerImpl.handleClientInformation (ServerGamePacketListenerImpl.java:2180)
  • Item frames in explosions: BlockAttachedEntity.hurtServer, ServerExplosion.hurtEntities, ItemFrame (ItemFrame.java:173)
  • Mannequin profile: Mannequin.addAdditionalSaveData / readAdditionalSaveData (Mannequin.java:126, :144)
  • Spam kick: ServerGamePacketListenerImpl.detectRateSpam, TickThrottler.isUnderThreshold (TickThrottler.java:23)

Self-check

rustfmt on changed files; built by CI; not run in game.

Split out of #3926.


🔄 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/3954 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/split-server` --- ### 📝 Commits (10+) - [`1474b11`](https://github.com/horizon-rust/horizon/commit/1474b118b416d326f4a7c74b9ca8af70f3900ebe) Break a straw bed when its sleeper gets up in the Overworld - [`4fe17c2`](https://github.com/horizon-rust/horizon/commit/4fe17c268ca850ef5be4f0720e858810f1559464) Show spectating guests as invisible to others - [`6befa86`](https://github.com/horizon-rust/horizon/commit/6befa8622d2a7977fb30e331b12320e249b805d5) Scale the LAN host's entity tracking by the Entity Distance option - [`126f997`](https://github.com/horizon-rust/horizon/commit/126f997703e000cc05dfe7c2124dbcee20427160) Make live shulkers solid for the player - [`a63b69c`](https://github.com/horizon-rust/horizon/commit/a63b69c3002dbdba80c4686eaed807251971c299) Fire thrown-item pickup advancement for piglins - [`765ed5d`](https://github.com/horizon-rust/horizon/commit/765ed5d0c2eefa323e7d9dbd6988e259defa66d1) Fire the thrown-item pickup advancement for the player - [`d5d42c8`](https://github.com/horizon-rust/horizon/commit/d5d42c8a5f25ea3145d9c502f692ecd3214da7e1) Let ravagers trample crops they walk through - [`62c4d91`](https://github.com/horizon-rust/horizon/commit/62c4d91aa57ca513d137757f443c22cb788cfd0a) Send the hat layer change to every player's tab list - [`ec6ea46`](https://github.com/horizon-rust/horizon/commit/ec6ea46499f44f9a876e2b00e9af3c074d8f3b76) Break item frames caught in an explosion - [`0703ae6`](https://github.com/horizon-rust/horizon/commit/0703ae6bd4398a386dc76c4ec0e2fef330c88fdd) Keep a mannequin's profile when it is saved and loaded ### 📊 Changes **17 files changed** (+411 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+127 -0) 📝 `crates/horizon-client/src/game.rs` (+8 -0) 📝 `crates/horizon-client/src/game/advancements.rs` (+25 -0) 📝 `crates/horizon-client/src/game/allays.rs` (+5 -0) 📝 `crates/horizon-client/src/game/beds.rs` (+10 -0) 📝 `crates/horizon-client/src/game/dedicated.rs` (+2 -0) 📝 `crates/horizon-client/src/game/explosion.rs` (+9 -2) 📝 `crates/horizon-client/src/game/frames.rs` (+40 -0) 📝 `crates/horizon-client/src/game/ghasts.rs` (+5 -3) 📝 `crates/horizon-client/src/game/integrated.rs` (+15 -2) 📝 `crates/horizon-client/src/game/lan.rs` (+20 -2) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+23 -1) 📝 `crates/horizon-client/src/game/lan_chat.rs` (+37 -0) 📝 `crates/horizon-client/src/game/piglins.rs` (+16 -0) 📝 `crates/horizon-client/src/game/respawn_anchor.rs` (+16 -8) 📝 `crates/horizon-client/src/lan/hub.rs` (+25 -2) 📝 `crates/horizon-client/src/mobs/ravager.rs` (+28 -1) </details> ### 📄 Description ## What and why - Break a straw bed when its sleeper gets up in the Overworld: the bed stayed in place after waking, but the Overworld's straw_bed_rule has destroy_on_leave. - Show spectating guests as invisible to others: a spectator guest sent no invisible flag, so others saw a full model. - Scale the LAN host's entity tracking by the Entity Distance option: the integrated host ignored entityDistanceScaling, so guests saw entities at the default range. - Make live shulkers solid for the player: walking ignored live shulkers, so the player passed through them. - Fire the thrown-item pickup advancement for piglins: gold you threw and a piglin took never granted Oh Shiny. - Fire the thrown-item pickup advancement for the player: picking up an item the player threw never granted You've Got a Friend in Me. - Let ravagers trample crops they walk through: they only broke leaves, so crops in their path survived (needs mobGriefing). - Send the hat layer change to every player's tab list: a guest toggling the hat layer was not announced, and the join entry now carries the hat state. - Break item frames caught in an explosion: blasts never reached item frames, so they stayed up with their item. - Keep a mannequin's profile when it is saved and loaded: a reloaded mannequin wore the default skin. - Kick guests who spam chat or commands: chat-spam-threshold-seconds and command-spam-threshold-seconds were read but unused; operators are exempt. ## Vanilla reference - Straw bed: AbstractBedBlock.onStopSleeping (AbstractBedBlock.java:119), StrawBedBlock.destroyBed (StrawBedBlock.java) - Spectator invisibility: ServerPlayer.updateInvisibilityStatus (ServerPlayer.java:2054) - Entity Distance: IntegratedServer.getScaledTrackingDistance (IntegratedServer.java:451) - Shulker collision: Shulker.canBeCollidedWith (Shulker.java:487), Entity.canCollideWith - Piglin pickup advancement: LivingEntity.onItemPickup (LivingEntity.java:3429) - Player pickup advancement: ServerPlayer.onItemPickup (ServerPlayer.java:2324) - Ravager crops: CropBlock.entityInside (CropBlock.java:153) - Hat layer: ServerGamePacketListenerImpl.handleClientInformation (ServerGamePacketListenerImpl.java:2180) - Item frames in explosions: BlockAttachedEntity.hurtServer, ServerExplosion.hurtEntities, ItemFrame (ItemFrame.java:173) - Mannequin profile: Mannequin.addAdditionalSaveData / readAdditionalSaveData (Mannequin.java:126, :144) - Spam kick: ServerGamePacketListenerImpl.detectRateSpam, TickThrottler.isUnderThreshold (TickThrottler.java:23) ## Self-check rustfmt on changed files; built by CI; not run in game. Split out of #3926. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:45 +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#5318
No description provided.