mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-04 23:32:55 +08:00
perf: findAny().isPresent()
is cleaner here
This commit is contained in:
parent
b7735295f1
commit
33d5c5238a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user