From 47ffa755c7f62d2c73df49d8688f78759b1c15e6 Mon Sep 17 00:00:00 2001 From: p2r3 Date: Sat, 23 Aug 2025 00:01:37 +0300 Subject: [PATCH] fix compile warnings --- include/tools.h | 1 + src/packets.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/tools.h b/include/tools.h index 8f133e1..63a7492 100644 --- a/include/tools.h +++ b/include/tools.h @@ -37,6 +37,7 @@ uint32_t fast_rand (); uint64_t splitmix64 (uint64_t state); #ifdef ESP_PLATFORM + #include "esp_timer.h" #define get_program_time esp_timer_get_time #else int64_t get_program_time (); diff --git a/src/packets.c b/src/packets.c index 159569f..8be59d0 100644 --- a/src/packets.c +++ b/src/packets.c @@ -1017,6 +1017,7 @@ int sc_removeEntity (int client_fd, int entity_id) { writeByte(client_fd, 1); writeVarInt(client_fd, entity_id); + return 0; } // S->C Registry Data (multiple packets) and Update Tags (configuration, multiple packets)