(7f9b7df0c) Fixed items disappearing when they're dropped into a full container. Closes #1588
This commit is contained in:
@@ -620,6 +620,7 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
if (DraggingItemToWorld &&
|
if (DraggingItemToWorld &&
|
||||||
Character.Controlled.FocusedItem?.OwnInventory != null &&
|
Character.Controlled.FocusedItem?.OwnInventory != null &&
|
||||||
|
Character.Controlled.FocusedItem.OwnInventory.CanBePut(draggingItem) &&
|
||||||
Character.Controlled.FocusedItem.OwnInventory.TryPutItem(draggingItem, Character.Controlled))
|
Character.Controlled.FocusedItem.OwnInventory.TryPutItem(draggingItem, Character.Controlled))
|
||||||
{
|
{
|
||||||
GUI.PlayUISound(GUISoundType.PickItem);
|
GUI.PlayUISound(GUISoundType.PickItem);
|
||||||
|
|||||||
Reference in New Issue
Block a user