Fix server lobby music exception.

Audio resources aren't shipped with the server, so the check is essentially useless.
This commit is contained in:
Vera Aguilera Puerto
2021-10-02 11:15:58 +02:00
parent 2910aa99f0
commit 48c9f0d646

View File

@@ -1,7 +1,4 @@
using Content.Shared.Audio; using Content.Shared.Audio;
using Robust.Shared.ContentPack;
using Robust.Shared.IoC;
using Robust.Shared.Log;
using Robust.Shared.Random; using Robust.Shared.Random;
using Robust.Shared.Utility; using Robust.Shared.Utility;
using Robust.Shared.ViewVariables; using Robust.Shared.ViewVariables;
@@ -10,7 +7,6 @@ namespace Content.Server.GameTicking
{ {
public partial class GameTicker public partial class GameTicker
{ {
[Dependency] private readonly IResourceManager _resourceManager = default!;
private const string LobbyMusicCollection = "LobbyMusic"; private const string LobbyMusicCollection = "LobbyMusic";
[ViewVariables] [ViewVariables]
@@ -48,12 +44,6 @@ namespace Content.Server.GameTicking
// TODO GAMETICKER send song stop event // TODO GAMETICKER send song stop event
} }
if (!_resourceManager.ContentFileExists(song))
{
Logger.ErrorS("ticker", $"Tried to set lobby song to \"{song}\", which doesn't exist!");
return;
}
LobbySong = song; LobbySong = song;
// TODO GAMETICKER send song change event // TODO GAMETICKER send song change event
} }