From 189b1955d778bb8779fc82d77f87abca03915c52 Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Mon, 3 Jun 2019 18:55:23 +0200 Subject: [PATCH] Fix: Client.getTexturePreview get Preview instead of File --- .../org/hso/texturesyncclient/controller/net/Connection.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/controller/net/Connection.kt b/client/src/main/kotlin/org/hso/texturesyncclient/controller/net/Connection.kt index 1838b99..1ce1531 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/controller/net/Connection.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/controller/net/Connection.kt @@ -192,7 +192,7 @@ class Connection(val address: InetAddress, val port: Int = 10796) : Closeable { val io = getStreams() val obj = JsonObject() - obj.add("get_texture_file", { + obj.add("get_texture_preview", { val inner = JsonObject() inner.addProperty("texture_hash", hash.toString()) inner.addProperty("desired_format", "jpeg")