3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-08 17:20:24 +01:00

Reduce delay for sequence acknowledgements (#3445)

Dieser Commit ist enthalten in:
RK_01 2023-09-26 02:53:36 +02:00 committet von GitHub
Ursprung 5a20030ff3
Commit f07ba9b527
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -29,6 +29,7 @@ public class AckSequenceProvider implements Provider {
public void handleSequence(final UserConnection connection, final int sequence) throws Exception {
final PacketWrapper ackPacket = PacketWrapper.create(ClientboundPackets1_19.BLOCK_CHANGED_ACK, connection);
ackPacket.write(Type.VAR_INT, sequence);
ackPacket.scheduleSend(Protocol1_19To1_18_2.class);
ackPacket.send(Protocol1_19To1_18_2.class);
}
}
}