Fix issue with resetting team with a full party

This commit is contained in:
KingRainbow44 2023-05-01 01:09:55 -04:00
parent b5515b9e3a
commit aadbc05061
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -582,7 +582,7 @@ public final class TeamManager extends BasePlayerDataManager {
// Restores all avatars from the player's avatar storage. // Restores all avatars from the player's avatar storage.
// If the avatar is already in the team, it will not be added. // If the avatar is already in the team, it will not be added.
var avatars = this.getCurrentTeamInfo().getAvatars(); var avatars = this.getCurrentTeamInfo().getAvatars();
for (var index = 0; index < avatars.size(); index++) { for (var index = 0; index < avatars.size() - 1; index++) {
var avatar = avatars.get(index); var avatar = avatars.get(index);
if (this.getActiveTeam().stream() if (this.getActiveTeam().stream()
.map(entity -> entity.getAvatar().getAvatarId()) .map(entity -> entity.getAvatar().getAvatarId())