3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-29 06:30:16 +02:00

Follow historical precedent with the new snapshot protocol release policy.

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-10-15 15:57:27 -04:00
Ursprung e20c37fcba
Commit fd63945175

Datei anzeigen

@ -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);
} }