Skip to content

Minecraft 26.2 and Velocity b604+ support#259

Draft
UserNugget wants to merge 2 commits into
masterfrom
26.2-support
Draft

Minecraft 26.2 and Velocity b604+ support#259
UserNugget wants to merge 2 commits into
masterfrom
26.2-support

Conversation

@UserNugget

Copy link
Copy Markdown
Member

Other Limbo* plugins should work fine, 26.2 has pretty small amount of protocol changes.

private static final MethodHandle CONNECTED_PLAYER_CONSTRUCTOR;
private static final MethodHandle SPAWNED_FIELD;
private static final BiConsumer<ConnectedPlayer, TabList> TAB_LIST_SETTER;
private static final UUID SESSION_ID = UUID.randomUUID();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should really use VelocityServer#getSessionId instead: PaperMC/Velocity@a758182

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Pretty sure the player isn't in connectionsByUuid yet at that point, so it doesn't seem very logical.

And honestly, when you think about it, limbo is basically a server for a single player, so in theory you could just assign a random uuid to each login packet, which would match mojang's own logic, since a new uuid gets generated whenever the server drops to zero players

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.

3 participants