Fixed addV

This commit is contained in:
Auxilor 2021-01-22 16:07:15 +00:00
parent 534aad3a9f
commit 317dfdef09

View File

@ -78,7 +78,7 @@ public class EnchantDisplay {
* @return The item, with KEY_V.
*/
public static ItemStack addV(@Nullable final ItemStack item) {
if (item == null || item.getItemMeta() == null) {
if (item == null || !EnchantmentTarget.ALL.getMaterials().contains(item.getType()) || item.getItemMeta() == null) {
return item;
}