Replaced AttributeType NONE_ARMOR with NONE.
This commit is contained in:
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
||||
*/
|
||||
public enum AttributeType
|
||||
{
|
||||
NONE_ARMOR(-2),
|
||||
NONE(-1),
|
||||
NONE(-2),
|
||||
FIRE(0),
|
||||
WATER(1),
|
||||
WIND(2),
|
||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
||||
_itemId = stone.getDisplayId();
|
||||
_count = stone.getCount();
|
||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
||||
if (_atribute == AttributeType.NONE)
|
||||
{
|
||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||
}
|
||||
|
Reference in New Issue
Block a user