mirror of
https://github.com/GeyserMC/GeyserConnect.git
synced 2025-06-26 06:15:21 +02:00
Fix connecting to offline mode servers
This commit is contained in:
parent
f840f9c6ad
commit
b0698284b3
1 changed files with 6 additions and 0 deletions
|
@ -99,6 +99,12 @@ public class Utils {
|
|||
session.remoteServer(server);
|
||||
session.getUpstream().setInitialized(false);
|
||||
|
||||
// If we are offline then authenticate
|
||||
// Online mode is handled by geyser code
|
||||
if (!server.online()) {
|
||||
session.authenticate(session.getAuthData().name());
|
||||
}
|
||||
|
||||
// Hand back to core geyser
|
||||
SetLocalPlayerAsInitializedPacket initializedPacket = new SetLocalPlayerAsInitializedPacket();
|
||||
initializedPacket.setRuntimeEntityId(session.getPlayerEntity().getGeyserId());
|
||||
|
|
Loading…
Add table
Reference in a new issue