1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-24 01:09:30 +00:00

Fix 2-am-typo resulting in incorrect ping values

This commit is contained in:
onebeastchris
2025-06-16 02:43:30 +02:00
parent f531a3624c
commit ec7a3dbd2f

View File

@@ -2188,7 +2188,7 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
@Override
public int ping() {
// Can otherwise cause issues if the player isn't logged in yet / already left
if (getUpstream().isInitialized() || getUpstream().isClosed()) {
if (!getUpstream().isInitialized() || getUpstream().isClosed()) {
return 0;
}