Skip to content

Commit

Permalink
🐛 Fixed bug with swapping selected item
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiviacz1337 committed Jul 9, 2024
1 parent 592de4d commit 0907f82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ else if(screenID == Reference.ITEM_SCREEN_ID)
@Override
public void clicked(int slotId, int dragType, ClickType clickType, Player player)
{
if(clickType == ClickType.SWAP)
if(container.getScreenID() == Reference.ITEM_SCREEN_ID && clickType == ClickType.SWAP)
{
final ItemStack stack = player.getInventory().getItem(dragType);
final ItemStack currentItem = player.getInventory().getSelected();
Expand Down

0 comments on commit 0907f82

Please sign in to comment.