forked from MagicBane/Server
Refactor of item.name; simplification.
This commit is contained in:
@@ -111,14 +111,11 @@ public final class MobLoot extends Item {
|
||||
if (this.template.item_type.equals(ItemType.GOLD))
|
||||
return null;
|
||||
|
||||
Item item = (Item) this;
|
||||
Item item = this;
|
||||
|
||||
item.setOwner(looter);
|
||||
//item.setIsID(false);
|
||||
|
||||
item.containerType = Enum.ItemContainerType.INVENTORY;
|
||||
item.setValue(0);
|
||||
item.setName(this.getCustomName());
|
||||
item.setIsID(this.isID());
|
||||
|
||||
if (this.getNumOfItems() > 1)
|
||||
@@ -131,9 +128,8 @@ public final class MobLoot extends Item {
|
||||
return null;
|
||||
}
|
||||
|
||||
// for (String effectName : this.effectNames)
|
||||
// item.addPermanentEnchantment(effectName, 0);
|
||||
//transfer enchantments to item
|
||||
|
||||
if (this.prefix.length() != 0)
|
||||
item.addPermanentEnchantment(this.prefix, 0);
|
||||
if (this.suffix.length() != 0)
|
||||
|
||||
Reference in New Issue
Block a user