From 48c9f0d646fe66fef49a011a28a27d3952a52bb1 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 2 Oct 2021 11:15:58 +0200 Subject: [PATCH] Fix server lobby music exception. Audio resources aren't shipped with the server, so the check is essentially useless. --- Content.Server/GameTicking/GameTicker.LobbyMusic.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Content.Server/GameTicking/GameTicker.LobbyMusic.cs b/Content.Server/GameTicking/GameTicker.LobbyMusic.cs index 39ae8f1f62..f9f5be9d8d 100644 --- a/Content.Server/GameTicking/GameTicker.LobbyMusic.cs +++ b/Content.Server/GameTicking/GameTicker.LobbyMusic.cs @@ -1,7 +1,4 @@ using Content.Shared.Audio; -using Robust.Shared.ContentPack; -using Robust.Shared.IoC; -using Robust.Shared.Log; using Robust.Shared.Random; using Robust.Shared.Utility; using Robust.Shared.ViewVariables; @@ -10,7 +7,6 @@ namespace Content.Server.GameTicking { public partial class GameTicker { - [Dependency] private readonly IResourceManager _resourceManager = default!; private const string LobbyMusicCollection = "LobbyMusic"; [ViewVariables] @@ -48,12 +44,6 @@ namespace Content.Server.GameTicking // 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; // TODO GAMETICKER send song change event }