mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Add new enchants and fallback to bukkit enchant name map
This commit is contained in:
parent
cbf2f34f93
commit
f3a8208425
@ -31,6 +31,9 @@ public class EnchantmentUtils {
|
|||||||
enchants.put("FLAME", Enchantment.ARROW_FIRE);
|
enchants.put("FLAME", Enchantment.ARROW_FIRE);
|
||||||
enchants.put("KNOCKBACK", Enchantment.KNOCKBACK);
|
enchants.put("KNOCKBACK", Enchantment.KNOCKBACK);
|
||||||
enchants.put("THORNS", Enchantment.THORNS);
|
enchants.put("THORNS", Enchantment.THORNS);
|
||||||
|
enchants.put("MENDING", Enchantment.MENDING);
|
||||||
|
enchants.put("DEPTH_STRIDER", Enchantment.DEPTH_STRIDER);
|
||||||
|
enchants.put("FROST_WALKER", Enchantment.FROST_WALKER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -45,6 +48,6 @@ public class EnchantmentUtils {
|
|||||||
return enchants.get(enchantmentName);
|
return enchants.get(enchantmentName);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return Enchantment.getByName(enchantmentName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user