Skip to content

Commit

Permalink
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -353,7 +353,9 @@ tasks {
isEnableRelocation = true
relocationPrefix = "net.frozenblock.lib.shadow"
dependencies {
exclude(dependency("net.fabricmc:fabric-loader:.*"))
exclude {
it.moduleGroup.contains("fabric")
}
}

//relocate("blue.endless.jankson", "net.frozenblock.lib.config.api.jankson")
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ public abstract class Config<T> {
private T configInstance;
private final T defaultInstance;

public Config(String modId, Class<T> config, Path path, boolean supportsModification, @Nullable DataFixer dataFixer, @Nullable Integer version) {
protected Config(String modId, Class<T> config, Path path, boolean supportsModification, @Nullable DataFixer dataFixer, @Nullable Integer version) {
this.modId = modId;
this.path = path;
this.supportsModification = supportsModification;
Original file line number Diff line number Diff line change
@@ -93,7 +93,7 @@ public JsonConfig(String modId, Class<T> config, Path path, JsonType type, boole

public JsonConfig(String modId, Class<T> config, Path path, JsonType type, boolean supportsModification, @Nullable DataFixer dataFixer, @Nullable Integer version) {
super(modId, config, path, supportsModification, dataFixer, version);
var janksonBuilder = Jankson.builder().withFixer(dataFixer).version(version);
var janksonBuilder = Jankson.builder().withFixer(dataFixer).withVersion(version);

this.jankson = ConfigSerialization.createJankson(janksonBuilder, modId);
this.type = type;

0 comments on commit 4a9135f

Please sign in to comment.