mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-01 23:25:09 +02:00
play item break animation and sound when a tool breaks
This commit is contained in:
@@ -436,6 +436,7 @@ void bumpToolDurability (PlayerData *player) {
|
|||||||
) {
|
) {
|
||||||
player->inventory_items[player->hotbar] = 0;
|
player->inventory_items[player->hotbar] = 0;
|
||||||
player->inventory_count[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);
|
sc_setContainerSlot(player->client_fd, 0, serverSlotToClientSlot(0, player->hotbar), 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user