Fixed string inputs in SerializableEntityEditor being cleared when enter is hit

This commit is contained in:
Joonas Rikkonen
2017-11-18 14:55:27 +02:00
parent 903686aed7
commit 2d17b6e889

View File

@@ -243,6 +243,8 @@ namespace Barotrauma
if (property.TrySetValue(text))
{
TrySendNetworkUpdate(entity, property);
textBox.Text = (string)property.GetValue();
textBox.Deselect();
}
return true;
};