Fixed exceptions when trying to save an itemcomponent that has been instantiated by calling the constructor directly (e.g. lightcomponents in wearables)

This commit is contained in:
Joonas Rikkonen
2018-03-02 17:46:48 +02:00
parent b49f47d3d9
commit 199794cf41

View File

@@ -182,6 +182,8 @@ namespace Barotrauma.Items.Components
{
this.item = item;
name = element.Name.ToString();
properties = SerializableProperty.GetProperties(this);
//canBePicked = ToolBox.GetAttributeBool(element, "canbepicked", false);