Skip to content

Use the proxy's online mode state on entity-metadata-rewrite server switches - #875

Merged
electronicboy merged 1 commit into
masterfrom
fix/serverconnector-online-mode
Sep 2, 2026
Merged

Use the proxy's online mode state on entity-metadata-rewrite server switches#875
electronicboy merged 1 commit into
masterfrom
fix/serverconnector-online-mode

Conversation

@electronicboy

Copy link
Copy Markdown
Member

Upstream #3998 (dc538cb2) took the initial-login half of our temporary "Use proxy online mode state" patch, so that patch was dropped in the last upstream update (#874). Its other half applied to our own code, not upstream's: the Login packet that the disable_entity_metadata_rewrite path re-sends on a server switch, in 0043-Provide-an-option-to-disable-entity-metadata-rewriti.patch. That line went back to reporting the backend's login.isOnlineMode().

With an online-mode proxy in front of offline-mode backends, the client is told true at login (upstream's site) and false on every switch through that path, so it does not prepare chat keys consistently. Only installs running with entity metadata rewriting disabled are affected; the default path sends a Respawn and never hit this.

This reports user.getPendingConnection().isOnlineMode() at that site too, restoring the comment explaining why.

Patches apply cleanly and ./waterfall b builds green on JDK 21. (The build fails on this machine's JDK 25 with release version 17 not supported — pre-existing and unrelated to this change.)

…witches

Upstream #3998 (dc538cb2) took the initial-login half of our temporary
"Use proxy online mode state" patch, so that patch was dropped in the last
upstream update. The other half applied to our own code: the Login packet
that the disable_entity_metadata_rewrite path re-sends on a server switch,
which went back to reporting the backend's login.isOnlineMode().

With an online-mode proxy in front of offline-mode backends the client was
told true at login and false on every switch, so it would not prepare chat
keys consistently. Report the pending connection's value at both sites.
@electronicboy
electronicboy merged commit 851354f into master Sep 2, 2026
2 checks passed
@MiniDigger
MiniDigger deleted the fix/serverconnector-online-mode branch September 2, 2026 15:35
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.

1 participant