From 916d9a7c8a95afe4cb93d26c477d6d390b99e3b6 Mon Sep 17 00:00:00 2001 From: hoorigan Date: Tue, 31 Oct 2017 16:47:46 -0400 Subject: [PATCH] ItemUtils: add ENCHANTED_BOOK to isEnchantable() This will (hopefully) make mcMMO aware that ENCHATED_BOOK can have an enchantment. --- src/main/java/com/gmail/nossr50/util/ItemUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gmail/nossr50/util/ItemUtils.java b/src/main/java/com/gmail/nossr50/util/ItemUtils.java index b8a8d3d79..be49f9d58 100644 --- a/src/main/java/com/gmail/nossr50/util/ItemUtils.java +++ b/src/main/java/com/gmail/nossr50/util/ItemUtils.java @@ -503,6 +503,7 @@ public final class ItemUtils { */ public static boolean isEnchantable(ItemStack item) { switch (item.getType()) { + case ENCHANTED_BOOK: case SHEARS: case FISHING_ROD: case CARROT_STICK: