From e70bb1f5f5d61fb76a6aeb9e4b0d6681dd158f4b Mon Sep 17 00:00:00 2001 From: waicool20 Date: Thu, 1 Oct 2020 18:03:59 +0800 Subject: [PATCH] MapRunner: Fix timeout --- .../com/waicool20/wai2k/script/modules/combat/MapRunner.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/waicool20/wai2k/script/modules/combat/MapRunner.kt b/src/main/kotlin/com/waicool20/wai2k/script/modules/combat/MapRunner.kt index d25931d057..91aee6b4ea 100644 --- a/src/main/kotlin/com/waicool20/wai2k/script/modules/combat/MapRunner.kt +++ b/src/main/kotlin/com/waicool20/wai2k/script/modules/combat/MapRunner.kt @@ -270,7 +270,7 @@ abstract class MapRunner( logger.info("Waiting for turn to end, expected battles: $battles") var battlesPassed = 0 try { - withTimeout(battles * profile.combat.battleTimeout.toLong()) { + withTimeout(battles * profile.combat.battleTimeout * 1000L) { while (isActive && battlesPassed < battles) { if (isInBattle()) { clickThroughBattle()