Merge pull request #1 from Regalis11/master
Updated to last original master commits
This commit is contained in:
@@ -241,6 +241,12 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
public override void Update(float deltaTime, Camera cam)
|
||||
{
|
||||
if (fabricatedItem == null)
|
||||
{
|
||||
CancelFabricating();
|
||||
return;
|
||||
}
|
||||
|
||||
#if CLIENT
|
||||
if (progressBar != null)
|
||||
{
|
||||
|
||||
@@ -1763,13 +1763,14 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
List<ItemComponent> unloadedComponents = new List<ItemComponent>(item.components);
|
||||
foreach (XElement subElement in element.Elements())
|
||||
{
|
||||
ItemComponent component = item.components.Find(x => x.Name == subElement.Name.ToString());
|
||||
|
||||
ItemComponent component = unloadedComponents.Find(x => x.Name == subElement.Name.ToString());
|
||||
if (component == null) continue;
|
||||
|
||||
component.Load(subElement);
|
||||
unloadedComponents.Remove(component);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user