From 4bcb2bcc174d3fee913506cc15a93d719c30f7f6 Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:18:35 +0100 Subject: [PATCH] Moved ViaFabricPlus config folder into .minecraft/config path --- .../java/de/florianmichael/viafabricplus/ViaFabricPlus.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;