Skip to content

Commit

Permalink
Remove useless null check
Browse files Browse the repository at this point in the history
  • Loading branch information
percyqaz committed Apr 17, 2023
1 parent 594b7d6 commit 62d95a1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/me/Percyqaz/Shulkerbox/InventoryListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,6 @@ public void RightClick(PlayerInteractEvent e)

Player player = e.getPlayer();
ItemStack item = player.getInventory().getItemInMainHand();

if (item == null)
{
return;
}

Material itemType = item.getType();

if (itemType == Material.ENDER_CHEST)
Expand Down

0 comments on commit 62d95a1

Please sign in to comment.