Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Merge pull request #894 from CoreyShupe/hotfix/check-null-instant
Fix null timestamps being passed to timekeeper improperly.
Dieser Commit ist enthalten in:
Commit
2727a03ef7
@ -127,7 +127,10 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
|
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
|
||||||
private boolean updateTimeKeeper(Instant instant) {
|
private boolean updateTimeKeeper(@Nullable Instant instant) {
|
||||||
|
if (instant == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (!this.timeKeeper.update(instant)) {
|
if (!this.timeKeeper.update(instant)) {
|
||||||
player.disconnect(Component.translatable("multiplayer.disconnect.out_of_order_chat"));
|
player.disconnect(Component.translatable("multiplayer.disconnect.out_of_order_chat"));
|
||||||
return false;
|
return false;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren