Skip to content

Commit 3904e73

Browse files
committed
feat: simplify item button click handling by removing null check for clickable buttons
1 parent 3e598f8 commit 3904e73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/fr/maxlego08/menu/inventory/inventories/InventoryDefault.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public void displayFinalButton(@NotNull Button button, @NotNull Placeholders pla
321321
ItemButton itemButton = this.addItem(button.isPlayerInventory(), slot, itemStack);
322322
perfDebug.end();
323323

324-
if (itemButton != null && button.isClickable()) {
324+
if (button.isClickable()) {
325325
itemButton.setClick(event -> {
326326

327327
if (event.getClick() == ClickType.DOUBLE_CLICK) return;

0 commit comments

Comments
 (0)