浏览代码

More things can be enchanted now.

gmcferrin 12 年之前
父节点
当前提交
0c61cc8bdc
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main/java/com/gmail/nossr50/util/ItemChecks.java

+ 4 - 1
src/main/java/com/gmail/nossr50/util/ItemChecks.java

@@ -468,6 +468,9 @@ public class ItemChecks {
      * @return true if the item is enchantable, false otherwise
      * @return true if the item is enchantable, false otherwise
      */
      */
     public static boolean isEnchantable(ItemStack is) {
     public static boolean isEnchantable(ItemStack is) {
-        return isArmor(is) || isSword(is) || isAxe(is) || isShovel(is) || isPickaxe(is) || (is.getType() == Material.BOW);
+        Material type = is.getType();
+        return isArmor(is) || isSword(is) || isAxe(is) || isShovel(is) || isPickaxe(is) ||
+               type == Material.SHEARS || type == Material.FISHING_ROD || type == Material.CARROT_STICK ||
+               type == Material.FLINT_AND_STEEL || type == Material.BOW;
     }
     }
 }
 }