mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-02 07:35:08 +02:00
improve packet error logging and handling
This commit is contained in:
@@ -256,10 +256,11 @@ int sc_playerAbilities (int client_fd, uint8_t flags) {
|
||||
// S->C Update Time
|
||||
int sc_updateTime (int client_fd, uint64_t ticks) {
|
||||
|
||||
writeVarInt(client_fd, sizeVarInt(0x6A) + 17);
|
||||
writeVarInt(client_fd, 18);
|
||||
writeVarInt(client_fd, 0x6A);
|
||||
|
||||
writeUint64(client_fd, get_program_time() / 50000);
|
||||
uint64_t world_age = get_program_time() / 50000;
|
||||
writeUint64(client_fd, world_age);
|
||||
writeUint64(client_fd, ticks);
|
||||
writeByte(client_fd, true);
|
||||
|
||||
|
Reference in New Issue
Block a user