Skip to content

Commit

Permalink
Fix error when compiling an unpublished mod.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwindalmir committed Jan 24, 2022
1 parent 7f888a1 commit b017906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WorkshopToolCommon/Uploader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public bool Compile()
if (m_type == WorkshopType.Mod)
{
MySandboxGame.Log.WriteLineAndConsole("Compiling...");
var mod = WorkshopHelper.GetContext(m_modPath, m_workshopItems[m_modId[0]], m_modId, m_title);
var mod = WorkshopHelper.GetContext(m_modPath, m_workshopItems.GetValueOrDefault(m_modId.FirstOrDefault()), m_modId, m_title);
if (WorkshopHelper.LoadScripts(m_modPath, mod))
{
// Process any errors
Expand Down

0 comments on commit b017906

Please sign in to comment.