Update submodule and fix race condition in wire component init

This commit is contained in:
Pieter-Jan Briers
2020-02-27 00:16:39 +01:00
parent 8cbb6841fc
commit 37df6e6a11
2 changed files with 6 additions and 1 deletions

View File

@@ -114,6 +114,11 @@ namespace Content.Server.GameObjects.Components
_userInterface = Owner.GetComponent<ServerUserInterfaceComponent>() _userInterface = Owner.GetComponent<ServerUserInterfaceComponent>()
.GetBoundUserInterface(WiresUiKey.Key); .GetBoundUserInterface(WiresUiKey.Key);
_userInterface.OnReceiveMessage += UserInterfaceOnReceiveMessage; _userInterface.OnReceiveMessage += UserInterfaceOnReceiveMessage;
}
protected override void Startup()
{
base.Startup();
foreach (var wiresProvider in Owner.GetAllComponents<IWires>()) foreach (var wiresProvider in Owner.GetAllComponents<IWires>())
{ {