Skip to content

Commit

Permalink
FMLPaths is gone; use default config path instead...
Browse files Browse the repository at this point in the history
- FMLPaths is gone; use default config path instead
  • Loading branch information
gniftygnome committed Jul 5, 2024
1 parent ac9d9d5 commit 1b513bc
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 @@ -11,8 +11,8 @@
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.RegisterCommandsEvent;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.loading.FMLConfig;
import net.minecraftforge.fml.loading.FMLLoader;
import net.minecraftforge.fml.loading.FMLPaths;
import org.apache.commons.lang3.function.TriFunction;

import java.nio.file.Path;
Expand All @@ -37,7 +37,7 @@ public boolean isDevelopmentEnvironment() {

@Override
public Path getConfigDir() {
return FMLPaths.CONFIGDIR.get();
return Path.of(FMLConfig.defaultConfigPath());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import net.minecraft.server.command.CommandManager;
import net.minecraft.server.command.ServerCommandSource;
import net.neoforged.fml.ModList;
import net.neoforged.fml.loading.FMLConfig;
import net.neoforged.fml.loading.FMLLoader;
import net.neoforged.fml.loading.FMLPaths;
import net.neoforged.neoforge.common.NeoForge;
import net.neoforged.neoforge.event.RegisterCommandsEvent;
import org.apache.commons.lang3.function.TriFunction;
Expand All @@ -37,7 +37,7 @@ public boolean isDevelopmentEnvironment() {

@Override
public Path getConfigDir() {
return FMLPaths.CONFIGDIR.get();
return Path.of(FMLConfig.defaultConfigPath());
}

@Override
Expand Down

0 comments on commit 1b513bc

Please sign in to comment.