diff --git a/src/main/java/emu/grasscutter/data/binout/AbilityMixinData.java b/src/main/java/emu/grasscutter/data/binout/AbilityMixinData.java index 649478655..6b4eb450f 100644 --- a/src/main/java/emu/grasscutter/data/binout/AbilityMixinData.java +++ b/src/main/java/emu/grasscutter/data/binout/AbilityMixinData.java @@ -27,7 +27,7 @@ public class AbilityMixinData implements Serializable { List list = (new Gson()).fromJson(modifierName, listType); return list; } else { - return Arrays.asList(modifierName.getAsString()); + return Collections.singletonList(modifierName.getAsString()); } } } diff --git a/src/main/java/emu/grasscutter/game/world/Scene.java b/src/main/java/emu/grasscutter/game/world/Scene.java index 993b2d42a..53f028746 100644 --- a/src/main/java/emu/grasscutter/game/world/Scene.java +++ b/src/main/java/emu/grasscutter/game/world/Scene.java @@ -392,7 +392,7 @@ public class Scene { } public void updateEntity(GameEntity entity, VisionType type) { - this.broadcastPacket(new PacketSceneEntityUpdateNotify(Arrays.asList(entity), type)); + this.broadcastPacket(new PacketSceneEntityUpdateNotify(Collections.singletonList(entity), type)); } private static List> chopped(List list, final int L) {