Unstable 0.1400.2.0 (a mimir edition)

This commit is contained in:
Markus Isberg
2021-05-28 19:04:09 +03:00
parent 5bc850cddb
commit 0b3fb5e440
126 changed files with 1623 additions and 787 deletions
@@ -1586,11 +1586,20 @@ namespace Barotrauma
}
}
var item = new Item(itemPrefab, pos, sub, id: itemId)
Item item = null;
try
{
SpawnedInOutpost = spawnedInOutpost,
AllowStealing = allowStealing
};
item = new Item(itemPrefab, pos, sub, id: itemId)
{
SpawnedInOutpost = spawnedInOutpost,
AllowStealing = allowStealing
};
}
catch (Exception e)
{
DebugConsole.ThrowError($"Failed to spawn item {itemPrefab.Name}", e);
throw;
}
if (item.body != null)
{