fix unbind can't remove tag...

Signed-off-by: j502647092 <jtb1@163.com>
pull/1/MERGE
j502647092 2015-04-29 22:16:53 +08:00
parent d4e26f4fcd
commit 0f4babe423
1 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,6 @@ package com.me.tft_02.soulbound.util;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
@ -44,9 +43,9 @@ public class ItemUtils {
if (itemMeta.hasLore()) {
List<String> oldLore = itemMeta.getLore();
oldLore.remove(ChatColor.DARK_RED + "Bind on Pickup");
oldLore.remove(ChatColor.DARK_RED + "Bind on Equip");
oldLore.remove(ChatColor.DARK_RED + "Bind on Use");
oldLore.remove(Misc.EQUIPBIND_TAG);
oldLore.remove(Misc.PICKUPBIND_TAG);
oldLore.remove(Misc.USEBIND_TAG);
itemLore.addAll(oldLore);
}
@ -55,6 +54,7 @@ public class ItemUtils {
if (Config.getInstance().getShowNameInLore()) {
itemLore.add(player.getName());
}
itemMeta.setLore(itemLore);
itemStack.setItemMeta(itemMeta);
return itemStack;