Skip to content

Commit fd0cf2c

Browse files
committed
fix: correct retrieval of local address in SurfBukkitNmsCommonBridgeImpl
1 parent 0a893c6 commit fd0cf2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
77
javaVersion=21
88
mcVersion=1.21.7
99
group=dev.slne.surf
10-
version=1.21.7-2.30.0
10+
version=1.21.7-2.30.1
1111
relocationPrefix=dev.slne.surf.surfapi.libs
1212
snapshot=false

surf-api-bukkit/surf-api-bukkit-server/src/main/kotlin/dev/slne/surf/surfapi/bukkit/server/impl/nms/bridges/SurfBukkitNmsCommonBridgeImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class SurfBukkitNmsCommonBridgeImpl : SurfBukkitNmsCommonBridge {
9292
val channel =
9393
channels.firstOrNull() ?: error("No channels found in server connection listener proxy")
9494

95-
return channel.channel().remoteAddress() as? InetSocketAddress
96-
?: error("Remote address is not an instance of InetSocketAddress")
95+
return channel.channel().localAddress() as? InetSocketAddress
96+
?: error("Local address is not an instance of InetSocketAddress")
9797
}
9898
}

0 commit comments

Comments
 (0)