diff --git a/src/main/java/de/florianmichael/viafabricplus/ViaFabricPlus.java b/src/main/java/de/florianmichael/viafabricplus/ViaFabricPlus.java index 21634897..24381ccc 100644 --- a/src/main/java/de/florianmichael/viafabricplus/ViaFabricPlus.java +++ b/src/main/java/de/florianmichael/viafabricplus/ViaFabricPlus.java @@ -20,12 +20,12 @@ package de.florianmichael.viafabricplus; import de.florianmichael.viafabricplus.event.PostGameLoadCallback; -import de.florianmichael.viafabricplus.event.LoadCallback; import de.florianmichael.viafabricplus.fixes.ClientsideFixes; import de.florianmichael.viafabricplus.protocolhack.ProtocolHack; import de.florianmichael.viafabricplus.util.ClassLoaderPriorityUtil; import de.florianmichael.viafabricplus.save.SaveManager; import de.florianmichael.viafabricplus.settings.SettingsManager; +import net.fabricmc.loader.api.FabricLoader; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -58,7 +58,7 @@ public class ViaFabricPlus { private static final ViaFabricPlus instance = new ViaFabricPlus(); private final Logger logger = LogManager.getLogger("ViaFabricPlus"); - private final File directory = new File("ViaFabricPlus"); + private final File directory = FabricLoader.getInstance().getConfigDir().resolve("viafabricplus").toFile(); private SettingsManager settingsManager; private SaveManager saveManager;