diff --git a/core/src/com/unciv/logic/multiplayer/SimpleHttp.kt b/core/src/com/unciv/logic/multiplayer/SimpleHttp.kt index 3227335348..48b6b32b5f 100644 --- a/core/src/com/unciv/logic/multiplayer/SimpleHttp.kt +++ b/core/src/com/unciv/logic/multiplayer/SimpleHttp.kt @@ -27,7 +27,10 @@ object SimpleHttp { with(urlObj.openConnection() as HttpURLConnection) { requestMethod = method // default is GET - setRequestProperty("User-Agent", "Unciv/${UncivGame.Current.version}-GNU-Terry-Pratchett") + if (UncivGame.isCurrentInitialized()) + setRequestProperty("User-Agent", "Unciv/${UncivGame.Current.version}-GNU-Terry-Pratchett") + else + setRequestProperty("User-Agent", "Unciv/Turn-Checker-GNU-Terry-Pratchett") try { if (content.isNotEmpty()) {