Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix edge case with early snapshot version detection (FabricMC#897)
Between 1.2 and the mid-1.7s, Mojang had a weird versioning system where pre-releases would 'reserve' a version number, and if additional pre-releases were required, the version number would be bumped. This led to some minor versions being 'skipped'. This was not previously accounted for in the version detection for snapshots. The snapshot 12w42b, for example, was followed by 1.4 pre-release, and 1.4.1 pre-release, before 1.4.2 became the first stable 1.4.x version. Previously, 12w42b would have been detected by Loader as a 1.4.2 snapshot - technically correct, but would have made its semver place it *after* 1.4 and 1.4.1, which is incorrect. This PR fixes all such cases.
- Loading branch information