Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 09:00:09 +01:00
And the default return value
Dieser Commit ist enthalten in:
Ursprung
47b15e5fef
Commit
e3dde71821
@ -29,6 +29,10 @@ public abstract class AbstractProtocolDetectorService implements ProtocolDetecto
|
|||||||
protected final Object2IntMap<String> detectedProtocolIds = new Object2IntOpenHashMap<>();
|
protected final Object2IntMap<String> detectedProtocolIds = new Object2IntOpenHashMap<>();
|
||||||
protected final ReadWriteLock lock = new ReentrantReadWriteLock();
|
protected final ReadWriteLock lock = new ReentrantReadWriteLock();
|
||||||
|
|
||||||
|
protected AbstractProtocolDetectorService() {
|
||||||
|
detectedProtocolIds.defaultReturnValue(-1);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int serverProtocolVersion(final String serverName) {
|
public int serverProtocolVersion(final String serverName) {
|
||||||
// Step 1. Check detected
|
// Step 1. Check detected
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren