Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Oct 31, 2023
1 parent df1b628 commit 539b426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/client/utils/ServerUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ enum class Server( // FINISHME: This is horrible. Why have I done this?
if ("Too close to an enemy tile!" in msg || "You cannot spawn ohnos while dead." in msg) return true // We don't care honestly
if ("Sorry, the max number of ohno units has been reached." in msg || "Ohnos have been temporarily disabled." in msg || "Ohnos are disabled in PVP." in msg) {
Time.run(60f) { // Null it out a second later, this is just to prevent any additional messages from bypassing the return below (only if it's the same one we just cancelled).
if (ohnoTask?.isScheduled == true) ohnoTask = null
if (ohnoTask?.isScheduled != true) ohnoTask = null
}
ohnoTask!!.cancel()
return true
Expand Down

0 comments on commit 539b426

Please sign in to comment.