Fix logic for telling the server snapshot versions.

This commit is contained in:
Andrew Steinborn
2020-11-04 18:58:48 -05:00
parent 54c5effe27
commit 642573e9e0

View File

@@ -122,7 +122,7 @@ public enum ProtocolVersion {
* @return the protocol version
*/
public int getProtocol() {
return protocol;
return protocol == -1 ? snapshotProtocol : protocol;
}
/**