diff --git a/common/src/main/java/us/myles/ViaVersion/api/protocol/VersionRange.java b/common/src/main/java/us/myles/ViaVersion/api/protocol/VersionRange.java index 2cd7eb41e..c7d3a0d1c 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/protocol/VersionRange.java +++ b/common/src/main/java/us/myles/ViaVersion/api/protocol/VersionRange.java @@ -12,12 +12,12 @@ public class VersionRange { * * @param baseVersion base version * @param rangeFrom minor version the range begins at, must be greater than or equal to 0 - * @param rangeTo minor version the range ends at, must be greater than 0 and {@link #rangeFrom} + * @param rangeTo minor version the range ends at, must be greater than {@code rangeFrom} */ public VersionRange(String baseVersion, int rangeFrom, int rangeTo) { Preconditions.checkNotNull(baseVersion); Preconditions.checkArgument(rangeFrom >= 0); - Preconditions.checkArgument(rangeTo > rangeFrom && rangeTo > 0); + Preconditions.checkArgument(rangeTo > rangeFrom); this.baseVersion = baseVersion; this.rangeFrom = rangeFrom; this.rangeTo = rangeTo;