Skip to content

Commit

Permalink
Remove autoconfig dependency
Browse files Browse the repository at this point in the history
This will break <=1.16.4 compatibility for now
  • Loading branch information
MightyKnight committed Jun 1, 2021
1 parent 897b618 commit 3e275b5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ dependencies {
modApi "me.shedaniel.cloth:cloth-config-fabric:${project.clothconfig_version}", {
exclude group: "net.fabricmc.fabric-api"
}
modApi "me.sargunvohra.mcmods:autoconfig1u:${project.autoconfig_version}", {
exclude group: "net.fabricmc.fabric-api"
}
modImplementation "io.github.prospector:modmenu:${project.modmenu_version}", {
exclude group: "net.fabricmc.fabric-api"
}

}

processResources {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/heyzeer0/sd/ModCore.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package net.heyzeer0.sd;

import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
import me.sargunvohra.mcmods.autoconfig1u.ConfigHolder;
import me.sargunvohra.mcmods.autoconfig1u.serializer.GsonConfigSerializer;
import me.shedaniel.autoconfig.AutoConfig;
import me.shedaniel.autoconfig.ConfigHolder;
import me.shedaniel.autoconfig.serializer.GsonConfigSerializer;
import net.fabricmc.api.ModInitializer;
import net.heyzeer0.sd.configs.GeneralConfig;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/heyzeer0/sd/configs/GeneralConfig.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package net.heyzeer0.sd.configs;

import me.sargunvohra.mcmods.autoconfig1u.ConfigData;
import me.sargunvohra.mcmods.autoconfig1u.annotation.Config;
import me.shedaniel.autoconfig.ConfigData;
import me.shedaniel.autoconfig.annotation.Config;
import net.minecraft.item.Items;
import net.minecraft.util.registry.Registry;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import io.github.prospector.modmenu.api.ConfigScreenFactory;
import io.github.prospector.modmenu.api.ModMenuApi;
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
import me.shedaniel.autoconfig.AutoConfig;
import net.heyzeer0.sd.configs.GeneralConfig;

public class SDModMenuIntegration implements ModMenuApi {
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"fabricloader": ">=0.7.4",
"fabric": "*",
"minecraft": ">=1.16.3",
"autoconfig1u": "*",
"cloth-config2": "*"
},
"recommends": {
Expand Down

0 comments on commit 3e275b5

Please sign in to comment.