Ertheia improvement for abstract item packet.

This commit is contained in:
MobiusDev
2017-12-06 18:44:07 +00:00
parent 709a2ed320
commit ac704b1493

View File

@@ -132,19 +132,11 @@ public abstract class AbstractItemPacket extends AbstractMaskPacket<ItemListType
protected void writeItemAugment(PacketWriter packet, ItemInfo item) protected void writeItemAugment(PacketWriter packet, ItemInfo item)
{ {
if ((item != null) && (item.getAugmentation() != null)) if ((item != null) && (item.getAugmentation() != null))
{
if (item.getAugmentation().getOptionId(0) != 0)
{ {
packet.writeH(item.getAugmentation().getOptionId(0)); packet.writeH(item.getAugmentation().getOptionId(0));
packet.writeH(item.getAugmentation().getOptionId(1)); packet.writeH(item.getAugmentation().getOptionId(1));
} }
else else
{
packet.writeD(item.getAugmentation().getOptionId(0));
packet.writeD(item.getAugmentation().getOptionId(1));
}
}
else
{ {
packet.writeD(0); packet.writeD(0);
packet.writeD(0); packet.writeD(0);