(7f9b7df0c) Fixed items disappearing when they're dropped into a full container. Closes #1588

This commit is contained in:
Joonas Rikkonen
2019-06-11 21:50:38 +03:00
parent 39d182c352
commit e38c896d42

View File

@@ -620,6 +620,7 @@ namespace Barotrauma
{
if (DraggingItemToWorld &&
Character.Controlled.FocusedItem?.OwnInventory != null &&
Character.Controlled.FocusedItem.OwnInventory.CanBePut(draggingItem) &&
Character.Controlled.FocusedItem.OwnInventory.TryPutItem(draggingItem, Character.Controlled))
{
GUI.PlayUISound(GUISoundType.PickItem);