mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Some changes for GeyserConnect
This commit is contained in:
parent
840318bd8b
commit
51330b8cda
2 changed files with 7 additions and 1 deletions
|
@ -249,7 +249,8 @@ public class GeyserSession implements GeyserConnection, CommandSender {
|
|||
private Vector2i lastChunkPosition = null;
|
||||
private int renderDistance;
|
||||
|
||||
private boolean sentSpawnPacket;
|
||||
// Exposed for GeyserConnect usage
|
||||
protected boolean sentSpawnPacket;
|
||||
|
||||
private boolean loggedIn;
|
||||
private boolean loggingIn;
|
||||
|
|
|
@ -213,6 +213,11 @@ public class LoginEncryptionUtils {
|
|||
}
|
||||
|
||||
public static void buildAndShowLoginWindow(GeyserSession session) {
|
||||
if (session.isLoggedIn()) {
|
||||
// Can happen if a window is cancelled during dimension switch
|
||||
return;
|
||||
}
|
||||
|
||||
// Set DoDaylightCycle to false so the time doesn't accelerate while we're here
|
||||
session.setDaylightCycle(false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue