mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 13:54:37 +01:00
Set max avatars in /lineup
This commit is contained in:
@@ -3,6 +3,7 @@ package emu.lunarcore.command.commands;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import emu.lunarcore.GameConstants;
|
||||
import emu.lunarcore.command.Command;
|
||||
import emu.lunarcore.command.CommandArgs;
|
||||
import emu.lunarcore.command.CommandHandler;
|
||||
@@ -37,7 +38,7 @@ public class LineupCommand implements CommandHandler {
|
||||
avatars.add(avatar.getAvatarId());
|
||||
|
||||
// Soft cap check
|
||||
if (avatars.size() >= 64) {
|
||||
if (avatars.size() >= GameConstants.MAX_AVATARS_IN_TEAM) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user