Skip to content

Commit 9d8b75a

Browse files
committed
real fix
1 parent c709b11 commit 9d8b75a

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Exiled.Loader/Config.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public sealed class Config : IConfig
3131
/// Gets or sets the environment type.
3232
/// </summary>
3333
[Description("The working environment type (Development, Testing, Production, Ptb)")]
34-
public EnvironmentType Environment { get; set; } = EnvironmentType.Ptb;
34+
public EnvironmentType Environment { get; set; } = EnvironmentType.Production;
3535
}
3636
}

Exiled.Loader/Loader.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ namespace Exiled.Loader
2222
using Exiled.Loader.Features.Configs;
2323
using Exiled.Loader.Features.Configs.CustomConverters;
2424

25+
using NorthwoodLib;
26+
2527
using YamlDotNet.Serialization;
2628
using YamlDotNet.Serialization.NamingConventions;
2729
using YamlDotNet.Serialization.NodeDeserializers;
@@ -53,6 +55,8 @@ static Loader()
5355
// "Useless" check for now, since configs will be loaded after loading all plugins.
5456
if (Config.Environment != EnvironmentType.Production)
5557
Paths.Reload($"EXILED-{Config.Environment.ToString().ToUpper()}");
58+
if (Environment.CurrentDirectory.Contains("testing", StringComparison.OrdinalIgnoreCase))
59+
Paths.Reload($"EXILED-Testing");
5660

5761
if (!Directory.Exists(Paths.Configs))
5862
Directory.CreateDirectory(Paths.Configs);

0 commit comments

Comments
 (0)