Skip to content

Commit

Permalink
Update ConfigManager.java (#38)
Browse files Browse the repository at this point in the history
Repaired config creating folder instead of file
  • Loading branch information
Szum123321 authored and Meredith Espinosa committed Dec 29, 2019
1 parent d77f5c8 commit 4c68b84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static void saveConfig(Object object, String configName){
try {
File file = FabricLoader.getInstance().getConfigDirectory().toPath().resolve(configName).toFile();
if(!file.exists()) {
file.mkdirs();
file.getParentFile().mkdirs();
file.createNewFile();
}
FileOutputStream out = new FileOutputStream(file,false);
Expand Down

0 comments on commit 4c68b84

Please sign in to comment.