mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
ItemUtils: add ENCHANTED_BOOK to isEnchantable()
Probably need this for my other change to be relevant.
This commit is contained in:
parent
22caf14866
commit
53285b182f
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user