Quiltify SimpleConfig

This commit is contained in:
nelle 2023-07-05 14:14:14 -06:00
parent 7c730f1354
commit ecdb32ffb2
2 changed files with 4 additions and 3 deletions

View file

@ -4,4 +4,4 @@
- Support for 1.20-1.20.1 in one file
## [3.0.3]
- Tweak Flower generation
-
- Quiltify SimpleConfig

View file

@ -50,9 +50,9 @@ package xyz.limepot.roses_mod.config;
* THE SOFTWARE.
*/
import net.fabricmc.loader.api.FabricLoader;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.quiltmc.loader.api.QuiltLoader;
import java.io.File;
import java.io.IOException;
@ -126,7 +126,8 @@ public class SimpleConfig {
* @return new config request object
*/
public static ConfigRequest of( String filename ) {
Path path = FabricLoader.getInstance().getConfigDir();
//Modified by LimePotato
Path path = QuiltLoader.getConfigDir();
return new ConfigRequest( path.resolve( filename + ".properties" ).toFile(), filename );
}