13
0
geforkt von Mirrors/Velocity

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 {
Map<Integer, ProtocolVersion> versions = new HashMap<>();
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) {
versions.put(version.snapshotProtocol, version);
}