From ebbe4c4f1e2e0ec824f6554d24dc492506f76b32 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Tue, 17 May 2016 13:35:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=89=A9=E5=93=81Lore?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/pw/yumc/MenuProtect/utils/MarkUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/pw/yumc/MenuProtect/utils/MarkUtil.java b/src/main/java/pw/yumc/MenuProtect/utils/MarkUtil.java index 6e06c41..e2e5b85 100644 --- a/src/main/java/pw/yumc/MenuProtect/utils/MarkUtil.java +++ b/src/main/java/pw/yumc/MenuProtect/utils/MarkUtil.java @@ -17,7 +17,7 @@ public class MarkUtil { public static Map> cmds = new HashMap<>(); public static void handlerItemClick(final Player p, final ItemStack is) { - if (hasMark(is)) { + if (hasMark(is) && is.getItemMeta().hasLore()) { for (final String lore : is.getItemMeta().getLore()) { if (cmds.containsKey(lore)) { for (final String cmd : cmds.get(lore)) {