Prevent invisible item when consumeBlock is false (#1001)

This commit is contained in:
CryptForge 2022-04-28 14:50:39 +02:00 committed by GitHub
parent bf961e4b61
commit 4b0f10d448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}
}