Skip to content

Commit

Permalink
fix: avoid ghost items after sword block restore
Browse files Browse the repository at this point in the history
Fixes #749
  • Loading branch information
kernitus committed Oct 28, 2024
1 parent b299df2 commit 822fb1f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ private void doShieldBlock(Player player) {
storedItems.put(id, offHandItem);

inventory.setItemInOffHand(SHIELD);
// Force an inventory update to avoid ghost items
player.updateInventory();
}
scheduleRestore(player);
}
Expand Down

0 comments on commit 822fb1f

Please sign in to comment.