(b45ff81a1) Log an error if a client can't find the prefab for an item spawned by the server

This commit is contained in:
Joonas Rikkonen
2019-05-16 07:02:40 +03:00
parent 1be3897197
commit e7d1ae2cda
10 changed files with 201 additions and 29 deletions
@@ -345,6 +345,25 @@ namespace Barotrauma
}
}
public string DisplayName
{
get;
private set;
}
private string roomName;
[Editable, Serialize("", true, translationTextTag: "RoomName.")]
public string RoomName
{
get { return roomName; }
set
{
if (roomName == value) { return; }
roomName = value;
DisplayName = TextManager.Get(roomName, returnNull: true) ?? roomName;
}
}
public override Rectangle Rect
{
get