Skip to content

Commit

Permalink
Move dep checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrix-Shen committed Apr 1, 2022
1 parent 1bb8cdb commit f137ad1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/main/java/top/hendrixshen/tweakmyclient/TweakMyClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import org.apache.logging.log4j.Logger;
import top.hendrixshen.magiclib.config.ConfigHandler;
import top.hendrixshen.magiclib.config.ConfigManager;
import top.hendrixshen.magiclib.dependency.annotation.Dependencies;
import top.hendrixshen.magiclib.dependency.annotation.Dependency;
import top.hendrixshen.tweakmyclient.config.Configs;

public class TweakMyClient implements ModInitializer {
Expand All @@ -22,6 +24,16 @@ public static Logger getLogger() {
return logger;
}

@Dependencies(
or = {
@Dependency(value = "minecraft", versionPredicate = "1.14.4"),
@Dependency(value = "minecraft", versionPredicate = "1.15.2"),
@Dependency(value = "minecraft", versionPredicate = "1.16.5"),
@Dependency(value = "minecraft", versionPredicate = "1.17.1"),
@Dependency(value = "minecraft", versionPredicate = "1.18.2"),
@Dependency(value = "minecraft", versionPredicate = "1.19.x"),
}
)
@Override
public void onInitialize() {
cm.parseConfigClass(Configs.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"TweakMyClient-Compat.mixins.json"
],
"depends": {
"fabricloader": ">=0.9.0",
"minecraft": "1.19.x",
"tweakmyclient": "*"
},
"custom": {
Expand Down

0 comments on commit f137ad1

Please sign in to comment.