Fixed potential NRE that shouldn't happen so long as the LuaCsForBarotrauma exists.

This commit is contained in:
MapleWheels
2026-03-01 17:13:15 -05:00
parent 5cbb635e54
commit 168ce83820
@@ -94,7 +94,7 @@ internal sealed class ModsGameplaySettingsMenu : ModsSettingsMenu
.OrderBy(cp => cp.Name) .OrderBy(cp => cp.Name)
.ToImmutableArray(); .ToImmutableArray();
var packageSelectionList = GUIUtil.Dropdown<ContentPackage>(layoutGroup, cp => cp.Name, null, var packageSelectionList = GUIUtil.Dropdown<ContentPackage>(layoutGroup, cp => cp.Name, null,
packages, packages[0], cp => packages, packages.Length > 0 ? packages[0] : null, cp =>
{ {
_selectedContentPackage = cp; _selectedContentPackage = cp;
_selectedCategory = string.Empty; _selectedCategory = string.Empty;