diff --git a/src/main/java/com/gamingmesh/jobs/stuff/Util.java b/src/main/java/com/gamingmesh/jobs/stuff/Util.java index d09c7fb9..32ffaf6e 100644 --- a/src/main/java/com/gamingmesh/jobs/stuff/Util.java +++ b/src/main/java/com/gamingmesh/jobs/stuff/Util.java @@ -409,7 +409,8 @@ public final class Util { } public static boolean enchantMatchesActionInfo(String enchant, EnchantActionInfo actionInfo) { - String enchantName = CMIEnchantment.get(actionInfo.getName()).toString(); + CMIEnchantment e = CMIEnchantment.get(actionInfo.getName()); + String enchantName = e != null ? CMIEnchantment.get(actionInfo.getName()).toString() : actionInfo.getName(); return ( // Enchantment without level e.g. silk_touch