We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af14091 + 949e55f commit 62cce90Copy full SHA for 62cce90
src/main/java/world/bentobox/bentobox/listeners/PanelListenerManager.java
@@ -33,7 +33,7 @@ public void onInventoryClick(InventoryClickEvent event) {
33
34
// Open the inventory panel that this player has open (they can only ever have one)
35
if (openPanels.containsKey(user.getUniqueId()) &&
36
- openPanels.get(user.getUniqueId()).getInventory().equals(event.getInventory())) {
+ openPanels.get(user.getUniqueId()).getInventory().equals(event.getClickedInventory())) {
37
// Cancel the event. If they don't want it to be cancelled then the click handler(s) should
38
// uncancel it. If gui was from our environment, then cancel event anyway.
39
event.setCancelled(true);
0 commit comments