Merge branch 'parity-base' into parity/server-leftovers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-13 05:44:19 +02:00
29 changed files with 732 additions and 59 deletions
@@ -478,9 +478,12 @@ public final class VanillaProtocolClient {
record("play", r.type + " " + json(p.reason()));
break;
}
// The clock goes out every second: after the first, where it
// falls among the joining packets is timing.
if (ordered && !(r.type.equals("minecraft:set_time") && counts.get(r.type) > 1)) {
// MinecraftServer.tickServer syncs the game time every 20 ticks
// (no clocks): whether one lands before the first chunk batch
// depends on when the client joined, so it isn't compared.
boolean periodicTime = packet instanceof net.minecraft.network.protocol.game.ClientboundSetTimePacket p
&& p.clockUpdates().isEmpty();
if (ordered && !periodicTime) {
record("play-start", r.type + " " + summary(r));
}
if (packet instanceof net.minecraft.network.protocol.game.ClientboundCommandsPacket p && counts.get(r.type) == 1) {