Ertheia improvement for abstract item packet.
This commit is contained in:
@@ -132,19 +132,11 @@ public abstract class AbstractItemPacket extends AbstractMaskPacket<ItemListType
|
||||
protected void writeItemAugment(PacketWriter packet, ItemInfo item)
|
||||
{
|
||||
if ((item != null) && (item.getAugmentation() != null))
|
||||
{
|
||||
if (item.getAugmentation().getOptionId(0) != 0)
|
||||
{
|
||||
packet.writeH(item.getAugmentation().getOptionId(0));
|
||||
packet.writeH(item.getAugmentation().getOptionId(1));
|
||||
}
|
||||
else
|
||||
{
|
||||
packet.writeD(item.getAugmentation().getOptionId(0));
|
||||
packet.writeD(item.getAugmentation().getOptionId(1));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
packet.writeD(0);
|
||||
packet.writeD(0);
|
||||
|
Reference in New Issue
Block a user