Fix compiler warnings and remove dead code.

This commit is contained in:
Pieter-Jan Briers
2019-05-28 00:30:34 +02:00
parent 996b45a04f
commit 9c3587b00e
12 changed files with 15 additions and 37 deletions

View File

@@ -40,8 +40,7 @@ namespace Content.Client.GameObjects.Components.Construction
case PlayerAttachedMsg _:
if (Button == null)
{
Button = new ConstructionButton(IoCManager.Resolve<IDisplayManager>());
Button.Owner = this;
Button = new ConstructionButton {Owner = this};
}
Button.AddToScreen();
break;