Skip to content

Commit

Permalink
Fix autoohno console spam
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 authored Nov 11, 2023
1 parent b95eea6 commit 8dd5ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/client/ClientLogic.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ClientLogic {
if (!syncing) {
AutoTransfer.enabled = settings.getBool("autotransfer") && !(state.rules.pvp && Server.io())
Server.ohnoTask?.cancel()
Server.ohnoTask = if (Server.fish() && settings.getBool("autoohno", false)) Timer.schedule({ Call.sendChatMessage("/ohno") }, 3f, 0.3f) else null
Server.ohnoTask = if (Server.fish() && settings.getBool("autoohno", false)) Timer.schedule({ if (player.tileOn()?.block ?: Blocks.air != Blocks.air) Call.sendChatMessage("/ohno") }, 3f, 0.3f) else null
frozenPlans.clear()

when (val vote = settings.getInt("automapvote")) {
Expand Down

0 comments on commit 8dd5ac9

Please sign in to comment.