Fix compiler warnings.

This commit is contained in:
Pieter-Jan Briers
2019-04-19 23:44:28 +02:00
parent 4c08c31149
commit 3e1f7d6d92
3 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,6 @@ using System;
using Content.Client.Interfaces.Chat;
using Content.Shared.Chat;
using Robust.Client.Console;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Interfaces.Network;
using Robust.Shared.IoC;
using Robust.Shared.Log;
@@ -20,7 +19,6 @@ namespace Content.Client.Chat
#pragma warning disable 649
[Dependency] private readonly IClientNetManager _netManager;
[Dependency] private readonly IClientConsole _console;
[Dependency] private readonly IEntityManager _entityManager;
#pragma warning restore 649
private ChatBox _currentChatBox;

View File

@@ -275,8 +275,8 @@ namespace Content.Client.Construction
}
var item = RecipeList.CreateItem(ItemForNode(node.Parent));
item.SetText(0, node.Name);
item.SetSelectable(0, false);
item.Text = node.Name;
item.Selectable = false;
categoryItems[node.FlattenedIndex] = item;
return item;
}
@@ -312,7 +312,7 @@ namespace Content.Client.Construction
}
}
var subItem = RecipeList.CreateItem(ItemForNode(node));
subItem.SetText(0, prototype.Name);
subItem.Text = prototype.Name;
subItem.Metadata = prototype;
}
}

View File

@@ -144,11 +144,13 @@ namespace Content.Server
[JsonObject(MemberSerialization.Fields, ItemRequired = Required.Always)]
private class OOCPostMessage
{
#pragma warning disable CS0649
[JsonProperty("password")] public string Password;
[JsonProperty("sender")] public string Sender;
[JsonProperty("contents")] public string Contents;
#pragma warning restore CS0649
}
}
}