mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 01:55:47 +01:00
Fix ProtocolVersion#isKnown javadoc to make difference with isRegistered more clear
This commit is contained in:
parent
c556420870
commit
54daa11ce4
@ -287,12 +287,12 @@ public class ProtocolVersion implements Comparable<ProtocolVersion> {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user