mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 17:34:39 +01:00
Fix issue with resetting team with a full party
This commit is contained in:
@@ -582,7 +582,7 @@ public final class TeamManager extends BasePlayerDataManager {
|
||||
// Restores all avatars from the player's avatar storage.
|
||||
// If the avatar is already in the team, it will not be added.
|
||||
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);
|
||||
if (this.getActiveTeam().stream()
|
||||
.map(entity -> entity.getAvatar().getAvatarId())
|
||||
|
||||
Reference in New Issue
Block a user