mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-16 04:31:22 +01:00
Fixed addV
This commit is contained in:
parent
534aad3a9f
commit
317dfdef09
@ -78,7 +78,7 @@ public class EnchantDisplay {
|
|||||||
* @return The item, with KEY_V.
|
* @return The item, with KEY_V.
|
||||||
*/
|
*/
|
||||||
public static ItemStack addV(@Nullable final ItemStack item) {
|
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;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user