Fix connecting to a server with the lobby enabled.
This commit is contained in:
@@ -195,11 +195,11 @@ namespace Content.Client
|
||||
var inputMan = IoCManager.Resolve<IInputManager>();
|
||||
ContentContexts.SetupContexts(inputMan.Contexts);
|
||||
|
||||
IoCManager.Resolve<IGameHud>().Initialize();
|
||||
IoCManager.Resolve<IClientNotifyManager>().Initialize();
|
||||
IoCManager.Resolve<IClientGameTicker>().Initialize();
|
||||
IoCManager.Resolve<IOverlayManager>().AddOverlay(new ParallaxOverlay());
|
||||
IoCManager.Resolve<IChatManager>().Initialize();
|
||||
IoCManager.Resolve<IGameHud>().Initialize();
|
||||
}
|
||||
|
||||
public override void Update(ModUpdateLevel level, float frameTime)
|
||||
|
||||
@@ -178,7 +178,7 @@ namespace Content.Client.GameTicking
|
||||
_tutorialButton = null;
|
||||
}
|
||||
|
||||
_gameHud.RootControl?.Parent.RemoveChild(_gameHud.RootControl);
|
||||
_gameHud.RootControl.Parent?.RemoveChild(_gameHud.RootControl);
|
||||
|
||||
_tickerState = TickerState.InLobby;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user