1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

fix client-side food level mismatch after eating

This commit is contained in:
p2r3
2025-08-28 03:04:27 +03:00
parent 992537cda8
commit da4ab5faaf

View File

@@ -647,8 +647,8 @@ uint8_t handlePlayerEating (PlayerData *player, uint8_t just_check) {
if (*held_count == 0) *held_item = 0; if (*held_count == 0) *held_item = 0;
// Update the client of these changes // Update the client of these changes
sc_setHealth(player->client_fd, player->health, player->hunger, player->saturation);
sc_entityEvent(player->client_fd, player->client_fd, 9); sc_entityEvent(player->client_fd, player->client_fd, 9);
sc_setHealth(player->client_fd, player->health, player->hunger, player->saturation);
sc_setContainerSlot( sc_setContainerSlot(
player->client_fd, 0, player->client_fd, 0,
serverSlotToClientSlot(0, player->hotbar), serverSlotToClientSlot(0, player->hotbar),