Reduce delay for sequence acknowledgements (#3445)

This commit is contained in:
RK_01 2023-09-26 02:53:36 +02:00 committed by GitHub
parent 5a20030ff3
commit f07ba9b527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}