Remove items in dummycharacter inventory in editmapscreen, important character updates a separate networkeventtype
This commit is contained in:
@@ -239,6 +239,17 @@ namespace Barotrauma.Items.Components
|
||||
itemIds = null;
|
||||
}
|
||||
|
||||
public override void Remove()
|
||||
{
|
||||
base.Remove();
|
||||
|
||||
foreach (Item item in inventory.items)
|
||||
{
|
||||
if (item == null) continue;
|
||||
item.Remove();
|
||||
}
|
||||
}
|
||||
|
||||
public override void Load(XElement componentElement)
|
||||
{
|
||||
base.Load(componentElement);
|
||||
|
||||
Reference in New Issue
Block a user