Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Co-authored-by: kyngs <kyngs@users.noreply.github.com>
Dieser Commit ist enthalten in:
Ursprung
6496983ca3
Commit
3293f7a9eb
@ -420,7 +420,9 @@ public enum StateRegistry {
|
|||||||
ProtocolVersion to = current == next ? lastValid != null
|
ProtocolVersion to = current == next ? lastValid != null
|
||||||
? lastValid : getLast(SUPPORTED_VERSIONS) : next.protocolVersion;
|
? lastValid : getLast(SUPPORTED_VERSIONS) : next.protocolVersion;
|
||||||
|
|
||||||
if (from.compareTo(to) >= 0 && from != getLast(SUPPORTED_VERSIONS)) {
|
ProtocolVersion lastInList = lastValid != null ? lastValid : getLast(SUPPORTED_VERSIONS);
|
||||||
|
|
||||||
|
if (from.compareTo(to) >= 0 && from != lastInList) {
|
||||||
throw new IllegalArgumentException(String.format(
|
throw new IllegalArgumentException(String.format(
|
||||||
"Next mapping version (%s) should be lower then current (%s)", to, from));
|
"Next mapping version (%s) should be lower then current (%s)", to, from));
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren