1
0
Mirror von https://e.coding.net/circlecloud/MenuProtect.git synchronisiert 2025-11-24 21:46:11 +00:00

fix: 修复物品Lore为空时的BUG

Dieser Commit ist enthalten in:
2016-05-17 13:35:53 +08:00
Ursprung c14411a87a
Commit ebbe4c4f1e

Datei anzeigen

@@ -17,7 +17,7 @@ public class MarkUtil {
public static Map<String, List<String>> 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)) {