diff --git a/src/main/java/emu/grasscutter/game/dungeons/challenge/factory/KillMonsterTimeChallengeFactoryHandler.java b/src/main/java/emu/grasscutter/game/dungeons/challenge/factory/KillMonsterTimeChallengeFactoryHandler.java index f2d4c63ae..8b17ac2b2 100644 --- a/src/main/java/emu/grasscutter/game/dungeons/challenge/factory/KillMonsterTimeChallengeFactoryHandler.java +++ b/src/main/java/emu/grasscutter/game/dungeons/challenge/factory/KillMonsterTimeChallengeFactoryHandler.java @@ -29,8 +29,7 @@ public class KillMonsterTimeChallengeFactoryHandler implements ChallengeFactoryH Scene scene, SceneGroup group) { val realGroup = scene.getScriptManager().getGroupById(groupId); - val challengeTriggers = new ArrayList(); - challengeTriggers.addAll(List.of(new KillMonsterCountTrigger(), new InTimeTrigger())); + val challengeTriggers = new ArrayList<>(List.of(new KillMonsterCountTrigger(), new InTimeTrigger())); val challengeData = GameData.getDungeonChallengeConfigDataMap().get(challengeId); val challengeType = challengeData.getChallengeType(); diff --git a/src/main/java/emu/grasscutter/game/mail/MailHandler.java b/src/main/java/emu/grasscutter/game/mail/MailHandler.java index 45b3373f6..2862f6ebe 100644 --- a/src/main/java/emu/grasscutter/game/mail/MailHandler.java +++ b/src/main/java/emu/grasscutter/game/mail/MailHandler.java @@ -58,8 +58,7 @@ public class MailHandler extends BasePlayerManager { } public void deleteMail(List mailList) { - List sortedMailList = new ArrayList<>(); - sortedMailList.addAll(mailList); + List sortedMailList = new ArrayList<>(mailList); sortedMailList.sort(Collections.reverseOrder()); List deleted = new ArrayList<>();