Skip to content

Commit 89ee9f8

Browse files
committed
Added null notification on enchant command
1 parent 00a9bac commit 89ee9f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/lojosho/enchantnow/commands/EnchantCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ private static void addEnchantItem(String[] args, CommandSender sender, ItemStac
7878
for (Enchantment enchant : hashyEnchants.keySet()) {
7979

8080
if (enchant == null) {
81+
SendMessageUtil.sendStringMessage(player, "Enchantment was null.");
8182
return;
8283
}
8384

0 commit comments

Comments
 (0)