Skip to content

Commit d2c548e

Browse files
committed
Fixed: Minor typos in /uses checks
1 parent c9393e8 commit d2c548e

File tree

1 file changed

+2
-2
lines changed
  • modules/RoyalCommands/src/main/java/org/royaldev/royalcommands/rcommands

1 file changed

+2
-2
lines changed

modules/RoyalCommands/src/main/java/org/royaldev/royalcommands/rcommands/CmdUses.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)