mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Better support for custom enchants
This commit is contained in:
parent
7970b15d02
commit
7e2ac97578
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user