mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 11:27:29 +00:00
hotfix some path logic
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package com.falsepattern.lib.config;
|
||||
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import com.falsepattern.lib.internal.CoreLoadingPlugin;
|
||||
import cpw.mods.fml.client.event.ConfigChangedEvent;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import lombok.AccessLevel;
|
||||
@@ -45,7 +46,7 @@ public class ConfigurationManager {
|
||||
*/
|
||||
public static void init() {
|
||||
if (initialized) return;
|
||||
configDir = Launch.minecraftHome.toPath().resolve("config");
|
||||
configDir = CoreLoadingPlugin.mcDir.toPath().resolve("config");
|
||||
MinecraftForge.EVENT_BUS.register(instance);
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.falsepattern.lib.mixin;
|
||||
|
||||
import com.falsepattern.lib.internal.CoreLoadingPlugin;
|
||||
import lombok.val;
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
@@ -21,7 +22,7 @@ import java.util.stream.Collectors;
|
||||
import static java.nio.file.Files.walk;
|
||||
|
||||
public interface IMixinPlugin extends IMixinConfigPlugin {
|
||||
Path MODS_DIRECTORY_PATH = new File(Launch.minecraftHome, "mods/").toPath();
|
||||
Path MODS_DIRECTORY_PATH = CoreLoadingPlugin.mcDir.toPath().resolve("mods");
|
||||
|
||||
Logger getLogger();
|
||||
ITargetedMod[] getTargetedModEnumValues();
|
||||
|
||||
Reference in new issue
Block a user