[GH-ISSUE #3836] [multiplayer] Survival inventory slots are shifted down by 36px (2 rows) outside the window and player doll is missing after server transfer #1109

Closed
opened 2026-11-02 15:44:19 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @KirilltimeVM on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3836

Description

When playing on a multiplayer server (behind a BungeeCord/Velocity proxy that opens a custom chest selector GUI in the lobby before transferring the player to the game server), opening the survival inventory (E) renders with a broken layout:

  1. All 36 player inventory + hotbar slots are shifted down by +36 GUI pixels (exactly 2 slot rows):
    • The inventory.png background texture, the 4 armor slots (y = 8, 26, 44, 62), the offhand slot (y = 62), and the 2×2 crafting grid are drawn at their normal positions.
    • However, the 3×9 main inventory rows and the 1×9 hotbar row are rendered at y = 120, 138, 156 and y = 178 instead of y = 84, 102, 120 and y = 142.
    • As a result, the top 2 rows of the inventory grid on the background texture remain completely empty, while the 3rd inventory row and the hotbar overflow below the bottom border of the inventory window and float in mid-air.
  2. The 3D player preview model in the black box (x = 26..75, y = 8..78) is completely missing (renders as a solid black rectangle).

Screenshot

Image

Steps to reproduce

  1. Connect to a multiplayer server using a lobby/proxy setup (e.g. CheatMine.net or a Velocity/BungeeCord server that opens a multi-row chest GUI to select a game mode like Anarchy).
  2. Click an item inside the server's chest GUI that transfers/switches the player to the sub-server (where the server transitions via Login / Respawn without a normal client-initiated container close).
  3. Press E to open the survival inventory.
  4. Observe that the 3×9 inventory and 1×9 hotbar items/slots are offset 2 rows down (+36px) outside the window frame, and the player model in the preview box is not drawn.

Relevant areas

  • crates/horizon-client/src/container_screen.rs / crates/horizon-client/src/containers.rs
  • crates/horizon-client/src/game/remote.rs (container/menu state reset on server switch / OpenScreen / Respawn / Login)
Originally created by @KirilltimeVM on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3836 ### Description When playing on a multiplayer server (behind a BungeeCord/Velocity proxy that opens a custom chest selector GUI in the lobby before transferring the player to the game server), opening the survival inventory (`E`) renders with a broken layout: 1. **All 36 player inventory + hotbar slots are shifted down by `+36` GUI pixels (exactly 2 slot rows):** - The `inventory.png` background texture, the 4 armor slots (`y = 8, 26, 44, 62`), the offhand slot (`y = 62`), and the 2×2 crafting grid are drawn at their normal positions. - However, the 3×9 main inventory rows and the 1×9 hotbar row are rendered at `y = 120, 138, 156` and `y = 178` instead of `y = 84, 102, 120` and `y = 142`. - As a result, the top 2 rows of the inventory grid on the background texture remain completely empty, while the 3rd inventory row and the hotbar overflow below the bottom border of the inventory window and float in mid-air. 2. **The 3D player preview model in the black box (`x = 26..75, y = 8..78`) is completely missing** (renders as a solid black rectangle). ### Screenshot <img width="1154" height="668" alt="Image" src="https://github.com/user-attachments/assets/a11d2140-92ba-4f76-90d5-d8c4af2ec6bb" /> ### Steps to reproduce 1. Connect to a multiplayer server using a lobby/proxy setup (e.g. `CheatMine.net` or a Velocity/BungeeCord server that opens a multi-row chest GUI to select a game mode like Anarchy). 2. Click an item inside the server's chest GUI that transfers/switches the player to the sub-server (where the server transitions via `Login` / `Respawn` without a normal client-initiated container close). 3. Press `E` to open the survival inventory. 4. Observe that the 3×9 inventory and 1×9 hotbar items/slots are offset 2 rows down (`+36px`) outside the window frame, and the player model in the preview box is not drawn. ### Relevant areas - `crates/horizon-client/src/container_screen.rs` / `crates/horizon-client/src/containers.rs` - `crates/horizon-client/src/game/remote.rs` (container/menu state reset on server switch / `OpenScreen` / `Respawn` / `Login`)
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#1109
No description provided.