Build 0.18.1.0
This commit is contained in:
@@ -388,7 +388,7 @@ namespace Barotrauma.Items.Components
|
||||
IsActive = isActive;
|
||||
}
|
||||
|
||||
public void SetRequiredItems(ContentXElement element)
|
||||
public void SetRequiredItems(ContentXElement element, bool allowEmpty = false)
|
||||
{
|
||||
bool returnEmpty = false;
|
||||
#if CLIENT
|
||||
@@ -410,7 +410,7 @@ namespace Barotrauma.Items.Components
|
||||
requiredItems[ri.Type].Add(ri);
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (!allowEmpty)
|
||||
{
|
||||
DebugConsole.ThrowError("Error in item config \"" + item.ConfigFilePath + "\" - component " + GetType().ToString() + " requires an item with no identifiers.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user