update via

This commit is contained in:
creeper123123321 2021-04-21 10:37:25 -03:00
parent c433aa5b34
commit c8876d1a5c
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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) {