ItemUtils: add ENCHANTED_BOOK to isEnchantable()

This will (hopefully) make mcMMO aware that ENCHATED_BOOK can have an enchantment.
This commit is contained in:
hoorigan 2017-10-31 16:47:46 -04:00 committed by GitHub
parent 6d5ab0edda
commit 916d9a7c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,6 +503,7 @@ public final class ItemUtils {
*/ */
public static boolean isEnchantable(ItemStack item) { public static boolean isEnchantable(ItemStack item) {
switch (item.getType()) { switch (item.getType()) {
case ENCHANTED_BOOK:
case SHEARS: case SHEARS:
case FISHING_ROD: case FISHING_ROD:
case CARROT_STICK: case CARROT_STICK: