ItemUtils: add ENCHANTED_BOOK to isEnchantable()

Probably need this for my other change to be relevant.
This commit is contained in:
hoorigan 2017-10-31 16:36:56 -04:00 committed by GitHub
parent 22caf14866
commit 53285b182f
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: