Skip to content

fix: send resourcepacks after server connect - #18

Merged
lusu007 merged 1 commit into
mainfrom
fix/resourcepack-send-after-server-connect
Aug 22, 2026
Merged

fix: send resourcepacks after server connect#18
lusu007 merged 1 commit into
mainfrom
fix/resourcepack-send-after-server-connect

Conversation

@lusu007

@lusu007 lusu007 commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Pull Request

Description

Send Velocity resource-pack requests only after the player has completed a backend connection. This prevents the initial server transition from discarding the resource-pack prompt sent during PostLoginEvent.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • ♻️ Refactoring
  • 📚 Documentation
  • 🔧 Chore

Related Issues

  • Fixes #

Testing

  • Unit tests pass
  • Manual testing completed
  • New tests added for new functionality

Checklist

  • I have performed a self-review of my own code
  • Tests have been added/updated and pass (if needed)
  • Documentation has been updated (if needed)

@lusu007
lusu007 merged commit 0036eb5 into main Aug 22, 2026
2 checks passed
@lusu007
lusu007 deleted the fix/resourcepack-send-after-server-connect branch August 22, 2026 11:11

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: abc6dfbd2a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Subscribe
fun onLogin(event: PostLoginEvent) {
fun onServerPostConnect(event: ServerPostConnectEvent) {
if (!stopped.get()) coordinator.onLogin(event.player)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Gate snapshot fanout until post-connect

When the resource-pack client publishes a READY snapshot after PostLoginEvent but before this ServerPostConnectEvent, ResourcePackCoordinator.onSnapshot still iterates every proxy-online player and sends the request during the unsafe transition. That send records the fingerprint, so this post-connect call is then suppressed as a duplicate and the discarded prompt is never retried. Track which players have completed their first backend connection (or otherwise prevent/clear pre-connect snapshot deliveries) before relying on this handler; the new test misses the race because its OnlinePlayerView is empty.

Useful? React with 👍 / 👎.

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