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