Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Follow historical precedent with the new snapshot protocol release policy.
Dieser Commit ist enthalten in:
Ursprung
e20c37fcba
Commit
fd63945175
@ -72,7 +72,10 @@ public enum ProtocolVersion {
|
|||||||
static {
|
static {
|
||||||
Map<Integer, ProtocolVersion> versions = new HashMap<>();
|
Map<Integer, ProtocolVersion> versions = new HashMap<>();
|
||||||
for (ProtocolVersion version : values()) {
|
for (ProtocolVersion version : values()) {
|
||||||
versions.put(version.protocol, version);
|
// For versions where the snapshot is compatible with the prior release version, Mojang will
|
||||||
|
// default to that. Follow that behavior since there is precedent (all the Minecraft 1.8
|
||||||
|
// minor releases use the same protocol version).
|
||||||
|
versions.putIfAbsent(version.protocol, version);
|
||||||
if (version.snapshotProtocol != -1) {
|
if (version.snapshotProtocol != -1) {
|
||||||
versions.put(version.snapshotProtocol, version);
|
versions.put(version.snapshotProtocol, version);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren