3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-20 06:50:09 +01:00

Some changes for GeyserConnect

Dieser Commit ist enthalten in:
Camotoy 2021-11-29 22:04:02 -05:00
Ursprung 840318bd8b
Commit 51330b8cda
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F
2 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -249,7 +249,8 @@ public class GeyserSession implements GeyserConnection, CommandSender {
private Vector2i lastChunkPosition = null; private Vector2i lastChunkPosition = null;
private int renderDistance; private int renderDistance;
private boolean sentSpawnPacket; // Exposed for GeyserConnect usage
protected boolean sentSpawnPacket;
private boolean loggedIn; private boolean loggedIn;
private boolean loggingIn; private boolean loggingIn;

Datei anzeigen

@ -213,6 +213,11 @@ public class LoginEncryptionUtils {
} }
public static void buildAndShowLoginWindow(GeyserSession session) { 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 // Set DoDaylightCycle to false so the time doesn't accelerate while we're here
session.setDaylightCycle(false); session.setDaylightCycle(false);