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:
Ursprung
840318bd8b
Commit
51330b8cda
@ -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;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren