File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/com/launium/mcping/server Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ android {
1616 applicationId = " com.launium.mcping"
1717 minSdk = 21
1818 targetSdk = 34
19- versionCode = 8
20- versionName = " 0.3.2 "
19+ versionCode = 9
20+ versionName = " 0.3.3 "
2121 setProperty(" archivesBaseName" , " MCPing-$versionName " )
2222
2323 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class MinecraftClient(private val connection: Socket) : Closeable {
4040 readChannel.readFully(statusArray)
4141 val statusObject =
4242 JSON .parse(statusArray, JSONReader .Feature .InitStringFieldAsEmpty ) as JSONObject
43- val serverFavicon = statusObject[" favicon" ] as String
43+ val serverFavicon = ( statusObject[" favicon" ] as ? String ) ? : " "
4444 var serverDescriptionText = " "
4545 when (val description = statusObject[" description" ]) {
4646 is JSONObject -> {
You can’t perform that action at this time.
0 commit comments