diff --git a/Core/src/main/java/fr/altarik/toolbox/core/config/ConfigI.java b/Core/src/main/java/fr/altarik/toolbox/core/config/ConfigI.java index 2d79082..6262667 100644 --- a/Core/src/main/java/fr/altarik/toolbox/core/config/ConfigI.java +++ b/Core/src/main/java/fr/altarik/toolbox/core/config/ConfigI.java @@ -24,10 +24,10 @@ public class ConfigI { return configPath.resolve(name); } - public static ConfigI load(Path configPath, String name, Class clazz) throws IOException, JsonSyntaxException, JsonIOException { + public static T load(Path configPath, String name, Class clazz) throws IOException, JsonSyntaxException, JsonIOException { Path path = getConfigPath(configPath, name); - ConfigI file; + T file; if(Files.exists(path)) { FileReader reader = new FileReader(path.toFile()); diff --git a/gradle.properties b/gradle.properties index a2d17f2..735d21f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ loader_version=0.15.6 fabric_version=0.95.4+1.20.4 maven_group=fr.altarik.toolbox -maven_version=4.5.1 +maven_version=5.0.0 git_owner=quentinlegot git_repo=Toolbox \ No newline at end of file