mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2025-01-02 18:17:36 +01:00
update via
This commit is contained in:
parent
c433aa5b34
commit
c8876d1a5c
@ -51,10 +51,10 @@ tasks.named<ProcessResources>("processResources") {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// transitive = false because Guava is conflicting on runClient
|
// transitive = false because Guava is conflicting on runClient
|
||||||
implementation("us.myles:viaversion:3.3.0-21w14a") { isTransitive = false }
|
implementation("us.myles:viaversion:3.3.0-21w15a") { isTransitive = false }
|
||||||
include("us.myles:viaversion:3.3.0-21w14a")
|
include("us.myles:viaversion:3.3.0-21w15a")
|
||||||
implementation("org.yaml:snakeyaml:1.26")
|
implementation("org.yaml:snakeyaml:1.28")
|
||||||
include("org.yaml:snakeyaml:1.26")
|
include("org.yaml:snakeyaml:1.28")
|
||||||
|
|
||||||
// Use 1.16 snapshot, probably intermediary will make it work on further versions
|
// Use 1.16 snapshot, probably intermediary will make it work on further versions
|
||||||
// https://modmuss50.me/fabric.html?&version=1.16
|
// https://modmuss50.me/fabric.html?&version=1.16
|
||||||
|
@ -55,7 +55,7 @@ public class VRVersionProvider extends BaseVersionProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getServerProtocol(UserConnection connection) throws Exception {
|
public int getClosestServerProtocol(UserConnection connection) throws Exception {
|
||||||
if (connection.isClientSide()) {
|
if (connection.isClientSide()) {
|
||||||
ProtocolInfo info = Objects.requireNonNull(connection.getProtocolInfo());
|
ProtocolInfo info = Objects.requireNonNull(connection.getProtocolInfo());
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ public class VRVersionProvider extends BaseVersionProvider {
|
|||||||
|
|
||||||
return serverVer;
|
return serverVer;
|
||||||
}
|
}
|
||||||
return super.getServerProtocol(connection);
|
return super.getClosestServerProtocol(connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkAddressBlocked(SocketAddress addr) {
|
private boolean checkAddressBlocked(SocketAddress addr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user