Skip to content

Commit 4cecd42

Browse files
committed
small fix
1 parent 920b26c commit 4cecd42

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
group = "org.breakthebot"
11-
version = "1.0.0"
11+
version = "1.0.1"
1212

1313
repositories {
1414
mavenCentral()

src/main/kotlin/org/breakthebot/breakthelibrary/api/LocationAPI.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.breakthebot.breakthelibrary.utils.Endpoints
2828

2929
object LocationAPI {
3030

31-
suspend fun getLocation(query: List<Pair<Int, Int>>): List<Location>? {
31+
suspend fun getLocation(query: List<Pair<Double, Double>>): List<Location>? {
3232
val body = buildJsonObject {
3333
put("query", JsonArray(query.map { (x, y) -> JsonArray(
3434
listOf(JsonPrimitive(x), JsonPrimitive(y)

src/test/kotlin/apiTest/location/LocationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class LocationTest {
2727

2828
@Test
2929
fun testLocation() {
30-
val coords = Pair(397, -9145)
30+
val coords = Pair(397.0, -9145.0)
3131
runBlocking {
3232
val loc = LocationAPI.getLocation(listOf(coords))?.first()
3333
assertNotNull(loc)

0 commit comments

Comments
 (0)