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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user