From da073e8e667fae91f2fa171c16313adfc73d4e53 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 5 Aug 2017 17:02:22 +1000 Subject: [PATCH] Anvils may enchant tool items in Vanilla By: md_5 --- .../org/bukkit/enchantments/EnchantmentTarget.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java b/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java index dee2350d2b..c0f47b661b 100644 --- a/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java +++ b/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java @@ -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); } },