Update VV API usage

This commit is contained in:
FlorianMichael 2024-10-25 18:39:17 +02:00
parent 51f7a5d5eb
commit b54e99f5a8
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 4 additions and 4 deletions

View File

@ -22,8 +22,8 @@ base {
}
dependencies {
compileOnly "com.viaversion:viaversion-common:5.0.4"
compileOnly "com.viaversion:viabackwards-common:5.0.4"
compileOnly "com.viaversion:viaversion-common:5.1.0"
compileOnly "com.viaversion:viabackwards-common:5.1.0"
}
publishing {

View File

@ -33,7 +33,7 @@ public class VAFServerVersionProvider implements VersionProvider {
@Override
public ProtocolVersion getClientProtocol(UserConnection connection) {
final ProtocolVersion version = connection.getProtocolInfo().protocolVersion();
if (version.getVersionType() == VersionType.SPECIAL) {
if (!version.isKnown()) {
return ProtocolVersion.getProtocol(VersionType.SPECIAL, version.getOriginalVersion());
} else {
return delegate.getClientProtocol(connection);

View File

@ -23,7 +23,7 @@
},
"depends": {
"viafabric": ">=0.4.14",
"viabackwards": ">=5.0.4-SNAPSHOT"
"viabackwards": ">=5.1.0"
},
"custom": {
"modmenu:api": true,