(2d9e06198) Attempt to fix incorrectly displayed Chinese capture device names (haven't been able to reproduce)

This commit is contained in:
Joonas Rikkonen
2019-05-16 07:02:57 +03:00
parent e7d1ae2cda
commit e42a0a33a4
13 changed files with 111 additions and 196 deletions
@@ -924,6 +924,25 @@ namespace Barotrauma.Items.Components
}
}
if (targetItem.Prefab.DeconstructItems.Any())
{
inputContainer.Inventory.RemoveItem(targetItem);
Entity.Spawner.AddToRemoveQueue(targetItem);
MoveInputQueue();
PutItemsToLinkedContainer();
}
else
{
if (outputContainer.Inventory.Items.All(i => i != null))
{
targetItem.Drop(dropper: null);
}
else
{
outputContainer.Inventory.TryPutItem(targetItem, user: null, createNetworkEvent: true);
}
}
if (targetItem.Prefab.DeconstructItems.Any())
{
inputContainer.Inventory.RemoveItem(targetItem);