From ab0ec0a0e04820201dca8b962247ac636b92cb13 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sat, 28 Sep 2024 17:34:41 -0400 Subject: [PATCH] fix(Ability.java): Remove unsafe cast --- src/main/java/emu/grasscutter/game/ability/Ability.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/ability/Ability.java b/src/main/java/emu/grasscutter/game/ability/Ability.java index 0c7f5337e..a903e5563 100644 --- a/src/main/java/emu/grasscutter/game/ability/Ability.java +++ b/src/main/java/emu/grasscutter/game/ability/Ability.java @@ -65,8 +65,7 @@ public class Ability { data.modifiers.values().stream() .map( m -> - (List) - (m.onAdded == null ? Collections.emptyList() : Arrays.asList(m.onAdded))) + m.onAdded == null ? Collections.emptyList() : Arrays.asList(m.onAdded)) .flatMap(List::stream) .filter(action -> action.type == AbilityModifierAction.Type.AvatarSkillStart) .map(action -> action.skillID)