mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 01:33:16 +00:00
Fix issue with resetting team with a full party
This commit is contained in:
parent
b5515b9e3a
commit
aadbc05061
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user