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:
@@ -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
|
||||
|
Reference in New Issue
Block a user