From 642573e9e0bf9b7cb18d48fbc1b759811119a807 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Wed, 4 Nov 2020 18:58:48 -0500 Subject: [PATCH] Fix logic for telling the server snapshot versions. --- .../java/com/velocitypowered/api/network/ProtocolVersion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/com/velocitypowered/api/network/ProtocolVersion.java b/api/src/main/java/com/velocitypowered/api/network/ProtocolVersion.java index ce5130078..0f71bf505 100644 --- a/api/src/main/java/com/velocitypowered/api/network/ProtocolVersion.java +++ b/api/src/main/java/com/velocitypowered/api/network/ProtocolVersion.java @@ -122,7 +122,7 @@ public enum ProtocolVersion { * @return the protocol version */ public int getProtocol() { - return protocol; + return protocol == -1 ? snapshotProtocol : protocol; } /**