mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-24 05:49:12 +00:00
fix(Ability.java): Remove unsafe cast
This commit is contained in:
parent
abb3242e20
commit
ab0ec0a0e0
@ -65,8 +65,7 @@ public class Ability {
|
||||
data.modifiers.values().stream()
|
||||
.map(
|
||||
m ->
|
||||
(List<AbilityModifierAction>)
|
||||
(m.onAdded == null ? Collections.emptyList() : Arrays.asList(m.onAdded)))
|
||||
m.onAdded == null ? Collections.<AbilityModifierAction>emptyList() : Arrays.asList(m.onAdded))
|
||||
.flatMap(List::stream)
|
||||
.filter(action -> action.type == AbilityModifierAction.Type.AvatarSkillStart)
|
||||
.map(action -> action.skillID)
|
||||
|
Loading…
Reference in New Issue
Block a user