mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
And the default return value
This commit is contained in:
parent
47b15e5fef
commit
e3dde71821
@ -29,6 +29,10 @@ public abstract class AbstractProtocolDetectorService implements ProtocolDetecto
|
||||
protected final Object2IntMap<String> detectedProtocolIds = new Object2IntOpenHashMap<>();
|
||||
protected final ReadWriteLock lock = new ReentrantReadWriteLock();
|
||||
|
||||
protected AbstractProtocolDetectorService() {
|
||||
detectedProtocolIds.defaultReturnValue(-1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int serverProtocolVersion(final String serverName) {
|
||||
// Step 1. Check detected
|
||||
|
Loading…
Reference in New Issue
Block a user