From 36ff6f63ae33577b5c3044f1a21a0d2f6aea94a7 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Wed, 28 Oct 2020 17:11:19 -0400 Subject: [PATCH] Use the fallback description if the backend server description is null This is technically incorrect but it seems like this is the best we can do... --- .../proxy/connection/client/StatusSessionHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/StatusSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/StatusSessionHandler.java index 2b44c654b..70b54f7b5 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/StatusSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/StatusSessionHandler.java @@ -120,6 +120,10 @@ public class StatusSessionHandler implements MinecraftSessionHandler { continue; } + if (response.getDescriptionComponent() == null) { + continue; + } + return new ServerPing( fallback.getVersion(), fallback.getPlayers().orElse(null),