Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30: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 ReadWriteLock lock = new ReentrantReadWriteLock();
|
||||
|
||||
protected AbstractProtocolDetectorService() {
|
||||
detectedProtocolIds.defaultReturnValue(-1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int serverProtocolVersion(final String serverName) {
|
||||
// Step 1. Check detected
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren