forked from EXTERNAL/bareiron
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
|
// Don't continue if the block change failed
|
||||||
if (makeBlockChange(x, y, z, 0)) return;
|
if (makeBlockChange(x, y, z, 0)) return;
|
||||||
bumpToolDurability(player);
|
|
||||||
|
|
||||||
uint16_t held_item = player->inventory_items[player->hotbar];
|
uint16_t held_item = player->inventory_items[player->hotbar];
|
||||||
uint16_t item = getMiningResult(held_item, block);
|
uint16_t item = getMiningResult(held_item, block);
|
||||||
|
bumpToolDurability(player);
|
||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
#ifdef ENABLE_PICKUP_ANIMATION
|
#ifdef ENABLE_PICKUP_ANIMATION
|
||||||
|
Reference in New Issue
Block a user