Skip to content

Commit

Permalink
Merge pull request #61 from Grzybol/patch-4.3.0
Browse files Browse the repository at this point in the history
- fix
  • Loading branch information
Grzybol authored Apr 18, 2024
2 parents a178475 + 8cafb1b commit 9033b09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/betterbox/mine/game/betterelo/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,9 @@ public boolean isValidAverageDamage (ArrayList<ItemStack> equippedItems){
}
@EventHandler(priority = EventPriority.LOW)
public void onInventoryClick(InventoryClickEvent event) {
if(event.getCurrentItem()==null){
return;
}
if(event.getCurrentItem().getType() == Material.GRAY_STAINED_GLASS_PANE || event.getCurrentItem().getType() == Material.GREEN_WOOL){
pluginLogger.log(PluginLogger.LogLevel.DEBUG, "GuiManager.onInventoryClick green wool or blank pane clicked, cancelling..");
event.setCancelled(true);
Expand Down

0 comments on commit 9033b09

Please sign in to comment.