mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
More things can be enchanted now.
This commit is contained in:
parent
c2bad4419b
commit
0c61cc8bdc
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user