Proper precaution check for future specialty additions.

This commit is contained in:
MobiusDev
2019-02-15 07:34:19 +00:00
parent 448e506757
commit c209e0d2d7
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ public class ExPledgeMasteryInfo extends AbstractItemPacket
packet.writeD(16); // Masteries count packet.writeD(16); // Masteries count
for (ClanSpecialtyHolder specialty : ClanSpecialtyData.getInstance().getSpecialties()) for (ClanSpecialtyHolder specialty : ClanSpecialtyData.getInstance().getSpecialties())
{ {
if (specialty.getId() < 16) if (specialty.getId() < 17)
{ {
packet.writeD(specialty.getId()); // Mastery packet.writeD(specialty.getId()); // Mastery
packet.writeD(0); // Purchased? packet.writeD(0); // Purchased?

View File

@@ -51,7 +51,7 @@ public class ExPledgeMasteryInfo extends AbstractItemPacket
packet.writeD(16); // Masteries count packet.writeD(16); // Masteries count
for (ClanSpecialtyHolder specialty : ClanSpecialtyData.getInstance().getSpecialties()) for (ClanSpecialtyHolder specialty : ClanSpecialtyData.getInstance().getSpecialties())
{ {
if (specialty.getId() < 16) if (specialty.getId() < 17)
{ {
packet.writeD(specialty.getId()); // Mastery packet.writeD(specialty.getId()); // Mastery
packet.writeD(0); // Purchased? packet.writeD(0); // Purchased?