Skip to content

Commit

Permalink
Fixed whole stack consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
Sfiguz7 committed Mar 3, 2024
1 parent 2730549 commit 149d52e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ private void onItemRightClick(PlayerRightClickEvent event) {
p.sendMessage(ChatColor.LIGHT_PURPLE +
CONFIG.getString("options.daxi-message-intro") + "\n" + type.message);
event.cancel();
if (event.getHand() == EquipmentSlot.HAND) {
event.getPlayer().getInventory().setItemInMainHand(null);
} else {
event.getPlayer().getInventory().setItemInOffHand(null);
}
event.getItem().setAmount(event.getItem().getAmount() - 1);
}

private void startAnimation(Player p) {
Expand Down

0 comments on commit 149d52e

Please sign in to comment.