3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Fix null timestamps being passed to timekeeper improperly.

Dieser Commit ist enthalten in:
Corey Shupe 2022-12-07 12:56:27 -05:00
Ursprung b1fa9dc953
Commit 0250d1ef8a

Datei anzeigen

@ -127,7 +127,10 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
}
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
private boolean updateTimeKeeper(Instant instant) {
private boolean updateTimeKeeper(@Nullable Instant instant) {
if (instant == null) {
return true;
}
if (!this.timeKeeper.update(instant)) {
player.disconnect(Component.translatable("multiplayer.disconnect.out_of_order_chat"));
return false;