mirror of
https://github.com/ViaVersion/ViaAprilFools.git
synced 2025-01-04 18:37:36 +01:00
Update VV API usage
This commit is contained in:
parent
51f7a5d5eb
commit
b54e99f5a8
@ -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 {
|
||||
|
@ -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);
|
||||
|
@ -23,7 +23,7 @@
|
||||
},
|
||||
"depends": {
|
||||
"viafabric": ">=0.4.14",
|
||||
"viabackwards": ">=5.0.4-SNAPSHOT"
|
||||
"viabackwards": ">=5.1.0"
|
||||
},
|
||||
"custom": {
|
||||
"modmenu:api": true,
|
||||
|
Loading…
Reference in New Issue
Block a user