NebulaModTeam / nebula

A multiplayer mod for the game Dyson Sphere Program
GNU General Public License v3.0
820 stars 125 forks source link

No longer initialise DiscordManager on a headless server. #690

Closed AlienXAXS closed 4 days ago

AlienXAXS commented 4 days ago

This stops a skippable error during headless startup too, there is no need to init discord here as the likelihood of it being present is extremely slim.

I've gone through DiscordManager and it looks as though no extra client == null checks are required.

PhantomGamers commented 4 days ago

There are certainly cases where you'd want to use the discord integration with headless mode. If you don't, disabling it in the settings is an option

PhantomGamers commented 3 days ago

Also just an alternative solution if just disabling it in the config isn't optimal, perhaps another argument could be added to disable discord integration that way. -no-discord or something