Преглед на файлове

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
      */
     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;
     }
 }