mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 22:18:09 +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()
|
data.modifiers.values().stream()
|
||||||
.map(
|
.map(
|
||||||
m ->
|
m ->
|
||||||
(List<AbilityModifierAction>)
|
m.onAdded == null ? Collections.<AbilityModifierAction>emptyList() : Arrays.asList(m.onAdded))
|
||||||
(m.onAdded == null ? Collections.emptyList() : Arrays.asList(m.onAdded)))
|
|
||||||
.flatMap(List::stream)
|
.flatMap(List::stream)
|
||||||
.filter(action -> action.type == AbilityModifierAction.Type.AvatarSkillStart)
|
.filter(action -> action.type == AbilityModifierAction.Type.AvatarSkillStart)
|
||||||
.map(action -> action.skillID)
|
.map(action -> action.skillID)
|
||||||
|
Loading…
Reference in New Issue
Block a user