From 6582337c813f282d93575b16c118aa61d66ed6e4 Mon Sep 17 00:00:00 2001 From: Amy <3855802+amylizzle@users.noreply.github.com> Date: Sun, 5 Jan 2025 04:24:25 +0000 Subject: [PATCH] Fix integration test not creating a client (#2154) --- OpenDreamClient/Interface/DummyDreamInterfaceManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenDreamClient/Interface/DummyDreamInterfaceManager.cs b/OpenDreamClient/Interface/DummyDreamInterfaceManager.cs index 734137f830..61d4c06dff 100644 --- a/OpenDreamClient/Interface/DummyDreamInterfaceManager.cs +++ b/OpenDreamClient/Interface/DummyDreamInterfaceManager.cs @@ -1,6 +1,8 @@ using OpenDreamClient.Interface.Controls; using OpenDreamClient.Interface.Descriptors; using OpenDreamShared.Dream; +using OpenDreamShared.Network.Messages; +using Robust.Shared.Network; using Robust.Shared.Timing; namespace OpenDreamClient.Interface; @@ -18,8 +20,10 @@ public sealed class DummyDreamInterfaceManager : IDreamInterfaceManager { public ControlMap? DefaultMap => null; public ViewRange View => new(5); public bool ShowPopupMenus => true; + [Dependency] private readonly IClientNetManager _netManager = default!; public void Initialize() { + _netManager.RegisterNetMessage((_) => _netManager.ClientSendMessage(new MsgAckLoadInterface())); } public void FrameUpdate(FrameEventArgs frameEventArgs) {