[ci skip] Fixed example in README

This commit is contained in:
FlorianMichael 2024-02-14 13:51:15 +01:00
parent e5138149b8
commit 164f229aa0
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ Here is an example implementation:
```java
Via.getManager().getProviders().use(VersionProvider.class, new BaseVersionProvider() {
@Override
public int getClosestServerProtocol(UserConnection connection) {
return ProtocolVersion.v1_8.getVersion(); // Change the logic here to select the target server version
public ProtocolVersion getClosestServerProtocol(UserConnection connection) {
return ProtocolVersion.v1_8; // Change the logic here to select the target server version
}
});
```