Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01: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:
Ursprung
18f6836c15
Commit
08241b8bd8
@ -80,7 +80,7 @@ public final class GeyserPaperPingPassthrough implements IGeyserPingPassthrough
|
|||||||
}
|
}
|
||||||
|
|
||||||
return geyserPingInfo;
|
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);
|
logger.debug("Error while getting Paper ping passthrough: " + e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ public class GeyserSpigotPingPassthrough implements IGeyserPingPassthrough {
|
|||||||
);
|
);
|
||||||
Bukkit.getOnlinePlayers().stream().map(Player::getName).forEach(geyserPingInfo.getPlayerList()::add);
|
Bukkit.getOnlinePlayers().stream().map(Player::getName).forEach(geyserPingInfo.getPlayerList()::add);
|
||||||
return geyserPingInfo;
|
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);
|
logger.debug("Error while getting Bukkit ping passthrough: " + e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren