Deconstructors & fabricators drop created items on the floor if there's no more room in the inventory, deconstructor doesn't reset the activation button after deconstructing an item if there are still more items to go
This commit is contained in:
@@ -375,7 +375,15 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
}
|
||||
|
||||
Item.Spawner.QueueItem(fabricatedItem.TargetItem, containers[1].Inventory);
|
||||
if (containers[1].Inventory.Items.All(i => i != null))
|
||||
{
|
||||
Item.Spawner.QueueItem(fabricatedItem.TargetItem, item.Position, item.Submarine);
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.Spawner.QueueItem(fabricatedItem.TargetItem, containers[1].Inventory);
|
||||
}
|
||||
|
||||
|
||||
CancelFabricating();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user