1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-01 23:25:09 +02:00

fix not blocks not dropping their item when the held tool breaks

This commit is contained in:
p2r3
2025-09-06 17:26:47 +03:00
parent 102a7d46f8
commit a72f405b7a

View File

@@ -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