(359537369) Don't do visibility checks in ChatMessage.GetGarbleAmount if the listener and the speaker are in the same hull

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:41:33 +03:00
parent 1b4957d2e6
commit 464aa46980
12 changed files with 148 additions and 370 deletions
@@ -620,6 +620,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);