3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-03 08:21:06 +02:00

Spigot: Ensure surprise method/constructor changes won't stop ping passthrough from working

Fixes #3079 but will need more work
Dieser Commit ist enthalten in:
Camotoy 2022-06-20 22:57:49 -04:00
Ursprung 18f6836c15
Commit 08241b8bd8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -80,7 +80,7 @@ public final class GeyserPaperPingPassthrough implements IGeyserPingPassthrough
}
return geyserPingInfo;
} catch (Exception e) {
} catch (Exception | LinkageError e) { // LinkageError in the event that method/constructor signatures change
logger.debug("Error while getting Paper ping passthrough: " + e);
return null;
}

Datei anzeigen

@ -56,7 +56,7 @@ public class GeyserSpigotPingPassthrough implements IGeyserPingPassthrough {
);
Bukkit.getOnlinePlayers().stream().map(Player::getName).forEach(geyserPingInfo.getPlayerList()::add);
return geyserPingInfo;
} catch (Exception e) {
} catch (Exception | LinkageError e) { // LinkageError in the event that method/constructor signatures change
logger.debug("Error while getting Bukkit ping passthrough: " + e);
return null;
}