diff --git a/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java b/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java index baea37d25..2facea3aa 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java +++ b/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java @@ -287,12 +287,12 @@ public class ProtocolVersion implements Comparable { } /** - * Returns whether the protocol is set. Should only be unknown for unregistered protocols returned by {@link #getProtocol(int)}. + * Returns whether the protocol version is {@link #unknown}. For checking if the protocol version is registered, use {@link #isRegistered(VersionType, int)} * - * @return true if the protocol is set + * @return true if the protocol version is unknown */ public boolean isKnown() { - return version != -1; + return this != unknown; } /**