Merge branch 'dev' of https://github.com/Regalis11/Barotrauma.git
This commit is contained in:
+11
-4
@@ -266,7 +266,6 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
|
||||
int amount = (int)amountMultiplier;
|
||||
|
||||
for (int i = 0; i < amount; i++)
|
||||
{
|
||||
Entity.Spawner.AddToSpawnQueue(itemPrefab, outputContainer.Inventory, condition, onSpawned: (Item spawnedItem) =>
|
||||
@@ -276,16 +275,24 @@ namespace Barotrauma.Items.Components
|
||||
for (int i = 0; i < outputContainer.Capacity; i++)
|
||||
{
|
||||
var containedItem = outputContainer.Inventory.GetItemAt(i);
|
||||
bool combined = false;
|
||||
if (containedItem?.OwnInventory != null)
|
||||
{
|
||||
foreach (Item subItem in containedItem.ContainedItems.ToList())
|
||||
{
|
||||
if (subItem.Combine(spawnedItem, null)) { break; }
|
||||
if (subItem.Combine(spawnedItem, null))
|
||||
{
|
||||
combined = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (containedItem?.Combine(spawnedItem, null) ?? false)
|
||||
if (!combined)
|
||||
{
|
||||
break;
|
||||
if (containedItem?.Combine(spawnedItem, null) ?? false)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
PutItemsToLinkedContainer();
|
||||
|
||||
@@ -1,14 +1,19 @@
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
v0.15.22.1
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
|
||||
- Fixed GameAnalytics consent prompt still going outside the window on small resolutions and/or large text sizes.
|
||||
- Fixed deconstructor not being able to put the items into containers in the output slots.
|
||||
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
v0.15.22.0
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
|
||||
- Fixed crashing on startup on some versions of macOS.
|
||||
- Fixed GameAnalytics consent prompt going outside the window on small resolutions and/or large text sizes.
|
||||
- Fixed Kastrull's drone sometimes spawning inside the sub client-side in multiplayer.
|
||||
- Fixed opening the settings menu resetting the game window, which caused screen capture software to stop capturing the window.
|
||||
- Fixed certain mods that don't configure the "you are here" circle sprite for the status monitors causing crashes.
|
||||
- Fixed abilities that give simultaneous skill gain (minor in mechanics, once upon a time in europa, apprenticeship) not giving the extra skill points.
|
||||
- Fixed deconstructor not being able to put the items into containers in the output slots.
|
||||
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
v0.15.21.0
|
||||
|
||||
Reference in New Issue
Block a user