Skip to content

Commit

Permalink
format: run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Jan 14, 2024
1 parent 427dc87 commit 909ec70
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ case object Schedule extends ContextualExecutor {
case Some(world) =>
regenStartMessages(worldName).foreach(context.sender.sendMessage)

WorldRegenerator.regenBukkitWorld(Some(world), schedule.seedPattern, newSeed).onSuccess { _ =>
GenerationScheduleUseCase.finish(schedule.id)
context.sender.sendMessage(regenSuccessfulMessage(worldName))
}
WorldRegenerator
.regenBukkitWorld(Some(world), schedule.seedPattern, newSeed)
.onSuccess { _ =>
GenerationScheduleUseCase.finish(schedule.id)
context.sender.sendMessage(regenSuccessfulMessage(worldName))
}
case _ => Left(WorldRegenerationException.WorldIsNotFound(worldName))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ object RegenerationTask extends MixInClock {
}.runTaskLaterAsynchronously(instance, difference * 20L)
}

def runInstantly(schedule: GenerationSchedule)(
implicit instance: JavaPlugin
): Unit =
def runInstantly(schedule: GenerationSchedule)(implicit instance: JavaPlugin): Unit =
new RegenerationTask(schedule).run()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object WorldRegenerationException extends Enum[WorldRegenerationException] {
s"The Bukkit world ($worldName) is not a Multiverse World"
)

case object WorldIsRequired extends WorldRegenerationException(s"A world is required")
case object WorldIsRequired extends WorldRegenerationException("A world is required")

case class WorldIsNotFound(worldName: String)
extends WorldRegenerationException(s"The world ($worldName) is not found")
Expand Down

0 comments on commit 909ec70

Please sign in to comment.