Skip to content

Commit

Permalink
Update VV API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Oct 25, 2024
1 parent 51f7a5d commit b54e99f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build-logic/src/main/groovy/vaf.base-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public VAFServerVersionProvider(final VersionProvider delegate) {
@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);
Expand Down
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"depends": {
"viafabric": ">=0.4.14",
"viabackwards": ">=5.0.4-SNAPSHOT"
"viabackwards": ">=5.1.0"
},
"custom": {
"modmenu:api": true,
Expand Down

0 comments on commit b54e99f

Please sign in to comment.