Skip to content

Commit

Permalink
修正部分问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Oct 30, 2023
1 parent f3e962e commit 34e13e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ public static void checkInfoJsonFile() {

private static Path getRootPath() {
if (Minecraft.getInstance() != null && Minecraft.getInstance().gameDirectory != null) {
return Paths.get(Minecraft.getInstance().gameDirectory.toURI()).resolve("config").resolve("assets/touhou_little_maid");
return Paths.get(Minecraft.getInstance().gameDirectory.toURI()).resolve("config").resolve("touhou_little_maid");
}
return Paths.get("./").resolve("config").resolve("assets/touhou_little_maid");
return Paths.get("./").resolve("config").resolve("touhou_little_maid");
}

@SuppressWarnings("AlibabaAvoidManuallyCreateThread")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.tartaricacid.touhoulittlemaid.config;
package com.github.tartaricacid.touhoulittlemaid.config.subconfig;

import com.github.tartaricacid.touhoulittlemaid.client.resource.CustomPackLoader;
import com.google.gson.annotations.SerializedName;
Expand All @@ -15,7 +15,7 @@

@OnlyIn(Dist.CLIENT)
public class InGameMaidConfig {
private static final File CONFIG_FILE = Minecraft.getInstance().gameDirectory.toPath().resolve("config").resolve("assets/touhou_little_maid").resolve("in_game_maid_config.json").toFile();
private static final File CONFIG_FILE = Minecraft.getInstance().gameDirectory.toPath().resolve("config").resolve("touhou_little_maid").resolve("in_game_maid_config.json").toFile();
public static InGameMaidConfig INSTANCE;

@SerializedName("sound_frequency")
Expand Down

0 comments on commit 34e13e6

Please sign in to comment.