mirror of https://github.com/Minestom/Minestom.git
Prevent invisible item when consumeBlock is false (#1001)
This commit is contained in:
parent
bf961e4b61
commit
4b0f10d448
|
@ -146,6 +146,9 @@ public class BlockPlacementListener {
|
|||
// Consume the block in the player's hand
|
||||
final ItemStack newUsedItem = usedItem.consume(1);
|
||||
playerInventory.setItemInHand(hand, newUsedItem);
|
||||
} else {
|
||||
// Prevent invisible item on client
|
||||
playerInventory.update();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue