GeyserMC / Geyser

A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
https://geysermc.org
MIT License
4.71k stars 675 forks source link

Support shouldAuthenticate = false field of ClientboundHelloPacket #4987

Open masmc05 opened 1 month ago

masmc05 commented 1 month ago

What feature do you want to see added?

Currently if I want to create encryption between geyser and the java server, the current error is printed

[geyser]: Cannot reply to ClientboundHelloPacket without profile and access token.

But that's needed only if the server forces to login to Mojang servers, while with the floodgate's detecting of geyser, this can be disabled

Are there any alternatives?

An alternative would be to leave as it is, but if minecraft now supports this encryption, don't see why not use it

Camotoy commented 1 month ago

Is there a way we can replicate this behavior?

masmc05 commented 1 month ago

Is there a way we can replicate this behavior?

Currently not without some modifications, easiest being https://pastebin.com/3yEVXeqZ on velocity, since this is kinda new and no platforms added this support

Vanilla client's handling of this being https://pastes.dev/kCeCBDcpua, which geyser doesn't match

onebeastchris commented 1 month ago

Reopening - the mcpl dependency needs to be bumped in geyser first