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...
This commit is contained in:
Andrew Steinborn
2020-10-28 17:11:19 -04:00
parent e3f17eeb24
commit 36ff6f63ae

View File

@@ -120,6 +120,10 @@ public class StatusSessionHandler implements MinecraftSessionHandler {
continue; continue;
} }
if (response.getDescriptionComponent() == null) {
continue;
}
return new ServerPing( return new ServerPing(
fallback.getVersion(), fallback.getVersion(),
fallback.getPlayers().orElse(null), fallback.getPlayers().orElse(null),