From 1f52ad9ec1de820dd3a2fe4588edb81ac427054b Mon Sep 17 00:00:00 2001 From: Moony Date: Mon, 7 Mar 2022 23:40:25 -0600 Subject: [PATCH] Allow admins with prototype load privileges to override. (#7033) --- .../Administration/Managers/GamePrototypeLoadManager.cs | 2 +- Content.Server/Administration/GamePrototypeLoadManager.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/Administration/Managers/GamePrototypeLoadManager.cs b/Content.Client/Administration/Managers/GamePrototypeLoadManager.cs index 74cd9cd7d3..d5e2919786 100644 --- a/Content.Client/Administration/Managers/GamePrototypeLoadManager.cs +++ b/Content.Client/Administration/Managers/GamePrototypeLoadManager.cs @@ -21,7 +21,7 @@ public sealed class GamePrototypeLoadManager : IGamePrototypeLoadManager private void LoadGamePrototype(GamePrototypeLoadMessage message) { - _prototypeManager.LoadString(message.PrototypeData); + _prototypeManager.LoadString(message.PrototypeData, true); _prototypeManager.Resync(); _localizationManager.ReloadLocalizations(); GamePrototypeLoaded?.Invoke(); diff --git a/Content.Server/Administration/GamePrototypeLoadManager.cs b/Content.Server/Administration/GamePrototypeLoadManager.cs index 4af6ecdce6..2089f02883 100644 --- a/Content.Server/Administration/GamePrototypeLoadManager.cs +++ b/Content.Server/Administration/GamePrototypeLoadManager.cs @@ -57,7 +57,7 @@ public sealed class GamePrototypeLoadManager : IGamePrototypeLoadManager var msg = _netManager.CreateNetMessage(); msg.PrototypeData = prototypeData; _netManager.ServerSendToAll(msg); // everyone load it up! - _prototypeManager.LoadString(prototypeData); // server needs it too. + _prototypeManager.LoadString(prototypeData, true); // server needs it too. _prototypeManager.Resync(); _localizationManager.ReloadLocalizations(); GamePrototypeLoaded?.Invoke();