Fix team wireds

This commit is contained in:
Alejandro 2019-06-16 14:09:19 +03:00
parent 240dedf2e7
commit 166a4cd77b
3 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ public class WiredConditionNotInTeam extends InteractionWiredCondition {
public boolean saveData(ClientMessage packet) {
packet.readInt();
this.teamColor = GameTeamColors.values()[packet.readInt() - 1];
this.teamColor = GameTeamColors.values()[packet.readInt()];
return true;
}

View File

@ -86,7 +86,7 @@ public class WiredConditionTeamMember extends InteractionWiredCondition {
public boolean saveData(ClientMessage packet) {
packet.readInt();
this.teamColor = GameTeamColors.values()[packet.readInt() - 1];
this.teamColor = GameTeamColors.values()[packet.readInt()];
return true;
}

View File

@ -118,7 +118,7 @@ public class WiredEffectJoinTeam extends InteractionWiredEffect {
@Override
public boolean saveData(ClientMessage packet, GameClient gameClient) {
packet.readInt();
this.teamColor = GameTeamColors.values()[packet.readInt() - 1];
this.teamColor = GameTeamColors.values()[packet.readInt()];
int unknownInt = packet.readInt();
packet.readString();
this.setDelay(packet.readInt());