mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Spigot: Ensure surprise method/constructor changes won't stop ping passthrough from working
Fixes #3079 but will need more work
This commit is contained in:
parent
18f6836c15
commit
08241b8bd8
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue