From 34a41b0ff7b6d7431e59917d050aa2bdf4b34fc9 Mon Sep 17 00:00:00 2001 From: p2r3 Date: Sat, 23 Aug 2025 02:31:11 +0300 Subject: [PATCH] prevent potential fall damage death from slow chunk loading --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 979672b..e174e5a 100644 --- a/src/main.c +++ b/src/main.c @@ -227,6 +227,7 @@ void handlePacket (int client_fd, int length, int packet_id) { // Prevent players from leaving the world if (cy < 0) { cy = 0; + player->grounded_y = 0; sc_synchronizePlayerPosition(client_fd, cx, 0, cz, player->yaw * 180 / 127, player->pitch * 90 / 127); } else if (cy > 255) { cy = 255;