Skip to content

Commit 05fa88e

Browse files
committed
Fix publicizer config option
- Made option nullable and automatically set it to true when null
1 parent 5e3995c commit 05fa88e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Configuration/OxideConfig.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class CompilerOptions
5454
/// Enables the publicizer
5555
/// </summary>
5656
[JsonProperty(PropertyName = "Enable Publicizer")]
57-
public bool Publicize { get; set; } = true;
57+
public bool? Publicize { get; set; } = true;
5858
}
5959

6060
[JsonObject]
@@ -239,6 +239,12 @@ private bool InitializeDefaultValues()
239239
changed = true;
240240
}
241241

242+
if (Compiler.Publicize == null)
243+
{
244+
Compiler.Publicize = true;
245+
changed = true;
246+
}
247+
242248
return changed;
243249
}
244250
}

0 commit comments

Comments
 (0)