mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-04-22 02:53:25 -04:00
Updated MCPing
This commit is contained in:
parent
80c970698d
commit
d472a1dacd
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ dependencies {
|
|||
include "net.lenni0451.classtransform:additionalclassprovider:1.14.1"
|
||||
include "net.lenni0451:Reflect:1.4.0"
|
||||
include "net.lenni0451:LambdaEvents:2.4.2"
|
||||
include("net.lenni0451:MCPing:1.4.3") {
|
||||
include("net.lenni0451:MCPing:1.4.4") {
|
||||
exclude group: "com.google.code.gson", module: "gson"
|
||||
}
|
||||
include "net.lenni0451.commons:swing:1.7.0"
|
||||
|
|
|
@ -31,7 +31,7 @@ public class ProtocolVersionDetector {
|
|||
|
||||
public static ProtocolVersion get(final SocketAddress serverAddress, final ProtocolVersion clientVersion) {
|
||||
final MCPingResponse response = MCPing
|
||||
.pingModern(clientVersion.getOriginalVersion())
|
||||
.pingModern(clientVersion.getOriginalVersion(), true)
|
||||
.tcpSocketFactory(new SocketChannelSocketFactory())
|
||||
.address(AddressUtil.toJ16UnixSocketAddress(serverAddress))
|
||||
.noResolve()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue