Do not start DiscordService client if disabled.
This commit is contained in:
@@ -58,6 +58,9 @@ namespace OpenRA.Mods.Common
|
|||||||
{
|
{
|
||||||
FieldLoader.Load(this, yaml);
|
FieldLoader.Load(this, yaml);
|
||||||
|
|
||||||
|
if (!Game.Settings.Game.EnableDiscordService)
|
||||||
|
return;
|
||||||
|
|
||||||
// HACK: Prevent service from starting when launching the utility or server.
|
// HACK: Prevent service from starting when launching the utility or server.
|
||||||
if (Game.Renderer == null)
|
if (Game.Renderer == null)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user