Skip to content

Commit

Permalink
Fixed config with ATLauncher for some reason (#152)
Browse files Browse the repository at this point in the history
Fixed lambdynlights config for ATLauncher users somehow??.
  • Loading branch information
aellul27 authored Jun 19, 2023
1 parent cbd9d62 commit 2ea8477
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import net.minecraft.text.Text;
import org.jetbrains.annotations.NotNull;

import net.fabricmc.loader.api.FabricLoader;
import java.nio.file.Path;
import java.nio.file.Paths;

Expand All @@ -38,7 +39,7 @@ public class DynamicLightsConfig {
private static final ExplosiveLightingMode DEFAULT_CREEPER_LIGHTING_MODE = ExplosiveLightingMode.SIMPLE;
private static final ExplosiveLightingMode DEFAULT_TNT_LIGHTING_MODE = ExplosiveLightingMode.OFF;

public static final Path CONFIG_FILE_PATH = Paths.get("config/lambdynlights.toml");
public static final Path CONFIG_FILE_PATH = FabricLoader.getInstance().getConfigDir().resolve("lambdynlights.toml");
protected final FileConfig config;
private final LambDynLights mod;
private DynamicLightsMode dynamicLightsMode;
Expand Down

0 comments on commit 2ea8477

Please sign in to comment.