Skip to content

Commit

Permalink
Add information about version constraints to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Moulberry committed May 11, 2024
1 parent fa7ee07 commit 9a2b057
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,11 @@ public class MixinMinecraft {
}
```

Some constraints support version ranges, which can be used like so:
```java
@IfModLoaded(value = "modernfix", minVersion = "5.11", maxVersion = "5.15")
```
The version comparison uses Fabric API's [Version](https://github.com/FabricMC/fabric-loader/blob/master/src/main/java/net/fabricmc/loader/api/Version.java). Ensure the version resembles a semver string in order for range comparison to work as expected.

# License
The library is available under the MIT license.

0 comments on commit 9a2b057

Please sign in to comment.