File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/main/java/fr/hashtek/spigot/hashgui/handler Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ public HashGuiClick addClickHandler(HashItem item)
5555 if (clickHandlers == null || clickHandlers .isEmpty ())
5656 return this ;
5757
58- ItemMeta meta = item .getItemStack ().getItemMeta ();
59- String itemName = meta .getDisplayName ();
58+ final ItemMeta meta = item .getItemStack ().getItemMeta ();
59+ final String itemName = meta .getDisplayName ();
6060
6161 for (ClickHandler handler : item .getClickHandlers ())
6262 this .addClickHandler (itemName , handler );
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ public HashGuiHold addHoldHandler(HashItem item)
5858 if (clickHandlers == null || clickHandlers .isEmpty ())
5959 return this ;
6060
61- ItemMeta meta = item .getItemStack ().getItemMeta ();
62- String itemName = meta .getDisplayName ();
61+ final ItemMeta meta = item .getItemStack ().getItemMeta ();
62+ final String itemName = meta .getDisplayName ();
6363
6464 for (HoldHandler handler : item .getHoldHandlers ())
6565 this .addHoldHandler (itemName , handler );
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ public HashGuiInteraction addInteractHandler(HashItem item)
5555 if (interactHandler == null || interactHandler .isEmpty ())
5656 return this ;
5757
58- ItemMeta meta = item .getItemStack ().getItemMeta ();
59- String itemName = meta .getDisplayName ();
58+ final ItemMeta meta = item .getItemStack ().getItemMeta ();
59+ final String itemName = meta .getDisplayName ();
6060
6161 for (InteractHandler handler : item .getInteractHandlers ())
6262 this .addInteractHandler (itemName , handler );
You can’t perform that action at this time.
0 commit comments