Skip to content

Commit

Permalink
Autovote on map load as well
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Nov 9, 2023
1 parent 1d5acbe commit 397d5b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/mindustry/client/ClientLogic.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ class ClientLogic {
Server.ohnoTask?.cancel()
Server.ohnoTask = if (Server.fish() && settings.getBool("autoohno", false)) Timer.schedule({ Call.sendChatMessage("/ohno") }, 3f, 0.3f) else null
frozenPlans.clear()

when (val vote = settings.getInt("automapvote")) {
1, 2, 3 -> Server.current.mapVote(vote - 1)
4 -> Server.current.mapVote(Random.nextInt(0..2))
}
}
configs.clear()
control.input.lastVirusWarning = null
Expand Down

0 comments on commit 397d5b5

Please sign in to comment.