From a72f405b7a58e2471997b05cbbab16803b795882 Mon Sep 17 00:00:00 2001 From: p2r3 Date: Sat, 6 Sep 2025 17:26:47 +0300 Subject: [PATCH] fix not blocks not dropping their item when the held tool breaks --- src/procedures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/procedures.c b/src/procedures.c index c07e16e..3939ae2 100644 --- a/src/procedures.c +++ b/src/procedures.c @@ -1020,10 +1020,10 @@ void handlePlayerAction (PlayerData *player, int action, short x, short y, short // Don't continue if the block change failed if (makeBlockChange(x, y, z, 0)) return; - bumpToolDurability(player); uint16_t held_item = player->inventory_items[player->hotbar]; uint16_t item = getMiningResult(held_item, block); + bumpToolDurability(player); if (item) { #ifdef ENABLE_PICKUP_ANIMATION