play item break animation and sound when a tool breaks

This commit is contained in:
p2r3
2025-08-28 01:59:17 +03:00
parent df8ebf07d5
commit 728195b48f

View File

@@ -436,6 +436,7 @@ void bumpToolDurability (PlayerData *player) {
) {
player->inventory_items[player->hotbar] = 0;
player->inventory_count[player->hotbar] = 0;
sc_entityEvent(player->client_fd, player->client_fd, 47);
sc_setContainerSlot(player->client_fd, 0, serverSlotToClientSlot(0, player->hotbar), 0, 0);
}