Server ping: Attempt 1.7+ ping first (#1507)

Forge detection might not work otherwise
This commit is contained in:
ORelio 2021-03-20 18:00:52 +01:00 committed by GitHub
parent fd7a84bc91
commit 49603db657
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,8 +85,8 @@ namespace MinecraftClient.Protocol
{ {
try try
{ {
if (Protocol16Handler.doPing(serverIP, serverPort, ref protocolversionTmp) if (Protocol18Handler.doPing(serverIP, serverPort, ref protocolversionTmp, ref forgeInfoTmp)
|| Protocol18Handler.doPing(serverIP, serverPort, ref protocolversionTmp, ref forgeInfoTmp)) || Protocol16Handler.doPing(serverIP, serverPort, ref protocolversionTmp))
{ {
success = true; success = true;
} }