mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-13 20:42:34 +08:00
perf: findAny().isPresent() is cleaner here
This commit is contained in:
@@ -83,7 +83,7 @@ public final class TeamManager extends BasePlayerDataManager {
|
||||
int embryoId = 0;
|
||||
|
||||
// add from default
|
||||
if (Arrays.stream(GameConstants.DEFAULT_TEAM_ABILITY_STRINGS).count() > 0) {
|
||||
if (Arrays.stream(GameConstants.DEFAULT_TEAM_ABILITY_STRINGS).findAny().isPresent()) {
|
||||
List<String> teamAbilties =
|
||||
Arrays.stream(GameConstants.DEFAULT_TEAM_ABILITY_STRINGS).toList();
|
||||
for (String skill : teamAbilties) {
|
||||
|
||||
Reference in New Issue
Block a user