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 daaab28a1..f2d4c63ae 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 @@ -35,7 +35,8 @@ public class KillMonsterTimeChallengeFactoryHandler implements ChallengeFactoryH val challengeData = GameData.getDungeonChallengeConfigDataMap().get(challengeId); val challengeType = challengeData.getChallengeType(); if (challengeType == ChallengeType.CHALLENGE_KILL_COUNT_FAST) { - challengeTriggers.add(new KillMonsterTimeIncTrigger(timeLimit, 0 /* refresh to original limit on kill */)); + challengeTriggers.add( + new KillMonsterTimeIncTrigger(timeLimit, 0 /* refresh to original limit on kill */)); } return new WorldChallenge( diff --git a/src/main/java/emu/grasscutter/game/dungeons/challenge/trigger/KillMonsterTimeIncTrigger.java b/src/main/java/emu/grasscutter/game/dungeons/challenge/trigger/KillMonsterTimeIncTrigger.java index 738a27a66..63a659188 100644 --- a/src/main/java/emu/grasscutter/game/dungeons/challenge/trigger/KillMonsterTimeIncTrigger.java +++ b/src/main/java/emu/grasscutter/game/dungeons/challenge/trigger/KillMonsterTimeIncTrigger.java @@ -15,7 +15,7 @@ public class KillMonsterTimeIncTrigger extends ChallengeTrigger { } @Override - public void onBegin(WorldChallenge challenge) { } + public void onBegin(WorldChallenge challenge) {} @Override public void onMonsterDeath(WorldChallenge challenge, EntityMonster monster) { @@ -31,6 +31,8 @@ public class KillMonsterTimeIncTrigger extends ChallengeTrigger { increment -= timeLeft + increment - maxTime; } challenge.setTimeLimit(challenge.getTimeLimit() + increment); - scene.broadcastPacket(new PacketChallengeDataNotify(challenge, 2, timeLeft + increment + scene.getSceneTimeSeconds())); + scene.broadcastPacket( + new PacketChallengeDataNotify( + challenge, 2, timeLeft + increment + scene.getSceneTimeSeconds())); } }