mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-07 00:33:22 +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;
|
int embryoId = 0;
|
||||||
|
|
||||||
// add from default
|
// 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 =
|
List<String> teamAbilties =
|
||||||
Arrays.stream(GameConstants.DEFAULT_TEAM_ABILITY_STRINGS).toList();
|
Arrays.stream(GameConstants.DEFAULT_TEAM_ABILITY_STRINGS).toList();
|
||||||
for (String skill : teamAbilties) {
|
for (String skill : teamAbilties) {
|
||||||
|
Loading…
Reference in New Issue
Block a user