Fixed holdable components reverting their RequiredItems back to the prefab values during loading. Closes #557
This commit is contained in:
@@ -124,6 +124,17 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
}
|
||||
|
||||
public override void Load(XElement componentElement)
|
||||
{
|
||||
base.Load(componentElement);
|
||||
if (attachable)
|
||||
{
|
||||
prevMsg = Msg;
|
||||
prevPickKey = PickKey;
|
||||
prevRequiredItems = new List<RelatedItem>(requiredItems);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Drop(Character dropper)
|
||||
{
|
||||
Drop(true, dropper);
|
||||
|
||||
Reference in New Issue
Block a user