[PR #5172] [MERGED] Send framed map updates only for a framed filled map #6119

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5172
Author: @kacpherek
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: fix/frame-map-updates


📝 Commits (2)

  • aaaf867 Send framed map updates only for a framed filled map
  • 38ca649 Merge origin/main into fix/frame-map-updates

📊 Changes

1 file changed (+7 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/maps.rs (+7 -2)

📄 Description

What and why

ServerEntity.sendChanges updates the map in an item frame every 10 ticks only when the framed item is a MapItem (itemStack.getItem() instanceof MapItem, ServerEntity.java:108). lan_map_updates in game/maps.rs took any framed stack carrying a map_id component, so a frame holding e.g. /give @s stone[map_id=1] received map packets, which vanilla never sends. In 26.3 the only MapItem is minecraft:filled_map (explorer maps are filled maps with components), so the frame branch now keeps only those. The inventory path is unchanged: ServerPlayer.synchronizeSpecialItemUpdates goes by the component alone in vanilla too.

The old check matches a NeoForge-patched decompile, which replaces that test with if (true); the pure vanilla source has the MapItem test. The map_id doc no longer claims every map-id holder is a MapItem.

Vanilla reference

ServerEntity.sendChanges (ServerEntity.java:106-120), ServerPlayer.synchronizeSpecialItemUpdates.

How it was checked

cargo check -p horizon-client --tests passes; rustfmt clean. Not run in game.


🔄 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/5172 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/frame-map-updates` --- ### 📝 Commits (2) - [`aaaf867`](https://github.com/horizon-rust/horizon/commit/aaaf867e461d1fed8c09a7b716f1300c4d4f619c) Send framed map updates only for a framed filled map - [`38ca649`](https://github.com/horizon-rust/horizon/commit/38ca649113dead91e5ffc0a9e225068d887e14c5) Merge origin/main into fix/frame-map-updates ### 📊 Changes **1 file changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/maps.rs` (+7 -2) </details> ### 📄 Description ## What and why `ServerEntity.sendChanges` updates the map in an item frame every 10 ticks only when the framed item is a `MapItem` (`itemStack.getItem() instanceof MapItem`, `ServerEntity.java:108`). `lan_map_updates` in `game/maps.rs` took any framed stack carrying a `map_id` component, so a frame holding e.g. `/give @s stone[map_id=1]` received map packets, which vanilla never sends. In 26.3 the only `MapItem` is `minecraft:filled_map` (explorer maps are filled maps with components), so the frame branch now keeps only those. The inventory path is unchanged: `ServerPlayer.synchronizeSpecialItemUpdates` goes by the component alone in vanilla too. The old check matches a NeoForge-patched decompile, which replaces that test with `if (true)`; the pure vanilla source has the `MapItem` test. The `map_id` doc no longer claims every map-id holder is a `MapItem`. ## Vanilla reference `ServerEntity.sendChanges` (`ServerEntity.java:106-120`), `ServerPlayer.synchronizeSpecialItemUpdates`. ## How it was checked `cargo check -p horizon-client --tests` passes; rustfmt clean. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:12:14 +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#6119
No description provided.