Skip to content

Commit

Permalink
Fix error when using /invsee (or similiar) - Fixes #132
Browse files Browse the repository at this point in the history
  • Loading branch information
addstar committed Apr 27, 2020
1 parent 9ba266a commit 9d86d60
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -146,6 +146,9 @@ public void onInventoryClick(final InventoryClickEvent event) {
ItemStack heldItem = event.getCursor();
ItemStack slotItem = event.getCurrentItem();

// This happens when opening someone else's inventory, so don't bother tracking it
if (slotItem == null) return;

switch (event.getClick()) {
// IGNORE BOTTOM
case LEFT:
Expand Down

0 comments on commit 9d86d60

Please sign in to comment.