Reduced UserInfo artifact slots write to one line.
Contributed by nasseka.
This commit is contained in:
@@ -316,14 +316,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -316,14 +316,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -323,14 +323,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -336,14 +336,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -336,14 +336,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -338,14 +338,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -338,14 +338,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -313,14 +313,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -313,14 +313,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -334,14 +334,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -334,14 +334,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -334,14 +334,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -336,14 +336,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
@@ -336,14 +336,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
|||||||
{
|
{
|
||||||
packet.writeC(1); // Charm slots
|
packet.writeC(1); // Charm slots
|
||||||
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
packet.writeC(_player.getInventory().getAgathionSlots() - 1);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packet.writeC(0); // Charm slots
|
packet.writeC(0); // Charm slots
|
||||||
packet.writeC(0);
|
packet.writeC(0);
|
||||||
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
|
||||||
}
|
}
|
||||||
|
packet.writeC(_player.getInventory().getArtifactSlots()); // Artifact set slots // 152
|
||||||
}
|
}
|
||||||
if (containsMask(UserInfoType.MOVEMENTS))
|
if (containsMask(UserInfoType.MOVEMENTS))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user