Skip to content

Commit 1a81aa7

Browse files
committed
Fix connecting to a tModLoader server behind the proxy
Signed-off-by: Seppe Volkaerts <seppevolkaerts@hotmail.com>
1 parent 2e70103 commit 1a81aa7

File tree

3 files changed

+2
-42
lines changed

3 files changed

+2
-42
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
kotlin("jvm") version "2.0.0"
2+
kotlin("jvm") version "2.0.20"
33
kotlin("plugin.serialization") version "2.0.0"
44
id("org.cadixdev.licenser") version "0.6.1"
55
}

proxy/src/main/kotlin/org/lanternpowered/terre/impl/network/backend/ServerInitConnectionHandler.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ internal class ServerInitConnectionHandler(
5858
private var syncModNetIdsPacket: ModDataPacket? = null
5959

6060
override fun initialize() {
61+
connection.protocol = versionedProtocol.protocol
6162
val version = versionedProtocol.version
62-
connection.protocol = ServerInitProtocol
6363
connection.send(ConnectionRequestPacket(ProtocolVersions.toString(version)))
6464
debug { "Send server connection request to ${connection.remoteAddress} with $version" }
6565
}

proxy/src/main/kotlin/org/lanternpowered/terre/impl/network/backend/ServerInitProtocol.kt

-40
This file was deleted.

0 commit comments

Comments
 (0)