Anvils may enchant tool items in Vanilla

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2017-08-05 17:02:22 +10:00
parent 343ab34fe0
commit da073e8e66

View file

@ -117,18 +117,18 @@ public enum EnchantmentTarget {
|| item.equals(Material.IRON_PICKAXE)
|| item.equals(Material.DIAMOND_PICKAXE)
|| item.equals(Material.GOLD_PICKAXE)
|| item.equals(Material.WOOD_HOE) // NOTE: No vanilla enchantments for this
|| item.equals(Material.STONE_HOE) // NOTE: No vanilla enchantments for this
|| item.equals(Material.IRON_HOE) // NOTE: No vanilla enchantments for this
|| item.equals(Material.DIAMOND_HOE) // NOTE: No vanilla enchantments for this
|| item.equals(Material.GOLD_HOE) // NOTE: No vanilla enchantments for this
|| item.equals(Material.WOOD_HOE)
|| item.equals(Material.STONE_HOE)
|| item.equals(Material.IRON_HOE)
|| item.equals(Material.DIAMOND_HOE)
|| item.equals(Material.GOLD_HOE)
|| item.equals(Material.WOOD_AXE)
|| item.equals(Material.STONE_AXE)
|| item.equals(Material.IRON_AXE)
|| item.equals(Material.DIAMOND_AXE)
|| item.equals(Material.GOLD_AXE)
|| item.equals(Material.SHEARS) // NOTE: No vanilla enchantments for this
|| item.equals(Material.FLINT_AND_STEEL); // NOTE: No vanilla enchantments for this
|| item.equals(Material.SHEARS)
|| item.equals(Material.FLINT_AND_STEEL);
}
},