File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/RoyalCommands/src/main/java/org/royaldev/royalcommands/rcommands Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ public void workbenchClick(final InventoryClickEvent e) {
223223 if (is == null || is .getType () == Material .AIR ) return ;
224224 final InventoryType it = e .getInventory ().getType ();
225225 if (it .compareTo (InventoryType .WORKBENCH ) != 0 && it .compareTo (InventoryType .FURNACE ) != 0 ) return ;
226- if (!(e .getView ().getTitle ().startsWith ("Use :" ))) return ;
226+ if (!(e .getView ().getTitle ().startsWith ("Uses :" ))) return ;
227227 e .setCancelled (true );
228228 if (!(e .getWhoClicked () instanceof Player )) return ;
229229 final Player p = (Player ) e .getWhoClicked ();
@@ -237,7 +237,7 @@ public void workbenchClose(final InventoryCloseEvent e) {
237237 final InventoryType it = e .getInventory ().getType ();
238238 if (it .compareTo (InventoryType .WORKBENCH ) != 0 && it .compareTo (InventoryType .FURNACE ) != 0 ) return ;
239239 if (!CmdUses .this .tasks .containsKey (p .getName ())) return ;
240- if (!(e .getView ().getTitle ().startsWith ("Recipe :" ))) return ;
240+ if (!(e .getView ().getTitle ().startsWith ("Uses :" ))) return ;
241241 final UsesHolder uh = (UsesHolder ) e .getInventory ().getHolder ();
242242 if (uh .isClosing ()) return ;
243243 CmdUses .this .cancelTask (p );
You can’t perform that action at this time.
0 commit comments