Skip to content

fix(proxy): forward backend register/unregister packets to client#672

Merged
robinbraemer merged 1 commit intominekube:masterfrom
RMS-Server:fix/backend-register-forward-direction
Mar 10, 2026
Merged

fix(proxy): forward backend register/unregister packets to client#672
robinbraemer merged 1 commit intominekube:masterfrom
RMS-Server:fix/backend-register-forward-direction

Conversation

@Trirrin
Copy link
Contributor

@Trirrin Trirrin commented Mar 8, 2026

Summary

  • Fixed backendPlaySessionHandler.handlePluginMessage to forward minecraft:register and minecraft:unregister packets from the backend server to the client, instead of incorrectly sending them back to the server.
  • Added unit test to verify the fix.

Problem

When a backend server sends minecraft:register plugin messages to declare supported channels, the proxy was erroneously writing these packets back to the server instead of forwarding them to the connected client.

This broke mods like Axiom that rely on receiving these registration packets to know which plugin message channels the backend supports.

Fix

The handler now correctly calls forwardToPlayer(pc, packet) to send register/unregister packets to the client, matching the intended behavior described in the updated comment.

Test Plan

  • Added TestBackendPlayRegisterForwardsToPlayer unit test
  • go build ./... passes
  • go test ./pkg/edition/java/proxy passes

The backend play handler was incorrectly sending minecraft:register and
minecraft:unregister packets back to the server instead of forwarding
them to the client. Mods like Axiom rely on receiving these packets
from the backend to know which plugin message channels are available.
@robinbraemer robinbraemer merged commit 1c5d6c8 into minekube:master Mar 10, 2026
6 checks passed
@robinbraemer
Copy link
Member

THANKS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants