Replaced AttributeType NONE_ARMOR with NONE.

This commit is contained in:
MobiusDev
2019-03-03 13:43:04 +00:00
parent bbe546f4c2
commit e6c88d6127
22 changed files with 22 additions and 33 deletions

View File

@@ -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),

View File

@@ -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);
}