Skip to content

Commit 52e1ff3

Browse files
committed
Revert "Check if the currently open panel is equal to the inventory that was clicked."
This reverts commit 949e55f.
1 parent dbacd10 commit 52e1ff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/world/bentobox/bentobox/listeners/PanelListenerManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void onInventoryClick(InventoryClickEvent event) {
3333

3434
// Open the inventory panel that this player has open (they can only ever have one)
3535
if (openPanels.containsKey(user.getUniqueId()) &&
36-
openPanels.get(user.getUniqueId()).getInventory().equals(event.getClickedInventory())) {
36+
openPanels.get(user.getUniqueId()).getInventory().equals(event.getInventory())) {
3737
// Cancel the event. If they don't want it to be cancelled then the click handler(s) should
3838
// uncancel it. If gui was from our environment, then cancel event anyway.
3939
event.setCancelled(true);

0 commit comments

Comments
 (0)