Skip to content

Commit ec2e0c9

Browse files
committed
Update publicize config handling
1 parent eeb9842 commit ec2e0c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/CompilerService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public CompilerService(Extension extension)
7474
EnvironmentHelper.SetVariable("Path:Data", Interface.Oxide.DataDirectory);
7575
EnvironmentHelper.SetVariable("Path:Libraries", Interface.Oxide.ExtensionDirectory);
7676

77-
if (Interface.Oxide.Config.Compiler.Publicize)
77+
if (Interface.Oxide.Config.Compiler.Publicize ?? false)
7878
{
7979
EnvironmentHelper.SetVariable("AllowPublicize", "true", force: true);
8080
}
@@ -162,7 +162,7 @@ internal bool Precheck()
162162
preprocessorList.AddRange(Interface.Oxide.Config.Compiler.PreprocessorDirectives);
163163
}
164164

165-
if (Interface.Oxide.Config.Compiler.Publicize)
165+
if (Interface.Oxide.Config.Compiler.Publicize ?? false)
166166
{
167167
EnvironmentHelper.SetVariable("AllowPublicize", "true", force: true);
168168
preprocessorList.Add("OXIDE_PUBLICIZED");

0 commit comments

Comments
 (0)