Skip to content

Commit

Permalink
Fix GetBoxTableCell (and possibly others) exploding
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Feb 29, 2024
1 parent a465fbe commit 807ef8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BeatSaberMarkupLanguage/Components/CustomListTableData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public LevelListTableCell GetTableCell()
{
if (songListTableCellPrefab == null)
{
songListTableCellPrefab = BeatSaberUI.DiContainer.Resolve<LevelCollectionViewController>().GetComponentInChildren<LevelCollectionTableView>()._levelCellPrefab;
songListTableCellPrefab = BeatSaberUI.DiContainer.Resolve<LevelCollectionViewController>().GetComponentInChildren<LevelCollectionTableView>(true)._levelCellPrefab;
}

tableCell = Instantiate(songListTableCellPrefab);
Expand All @@ -78,7 +78,7 @@ public BSMLBoxTableCell GetBoxTableCell()
{
if (levelPackTableCellPrefab == null)
{
levelPackTableCellPrefab = BeatSaberUI.DiContainer.Resolve<AnnotatedBeatmapLevelCollectionsViewController>().GetComponentInChildren<AnnotatedBeatmapLevelCollectionsGridView>()._cellPrefab;
levelPackTableCellPrefab = BeatSaberUI.DiContainer.Resolve<AnnotatedBeatmapLevelCollectionsViewController>().GetComponentInChildren<AnnotatedBeatmapLevelCollectionsGridView>(true)._cellPrefab;
}

tableCell = InstantiateBoxTableCell(levelPackTableCellPrefab);
Expand Down Expand Up @@ -120,7 +120,7 @@ public SimpleTextTableCell GetSimpleTextTableCell()
{
if (simpleTextTableCellPrefab == null)
{
simpleTextTableCellPrefab = BeatSaberUI.DiContainer.Resolve<PlayerOptionsViewController>().GetComponentInChildren<SimpleTextDropdown>()._cellPrefab;
simpleTextTableCellPrefab = BeatSaberUI.DiContainer.Resolve<PlayerOptionsViewController>().GetComponentInChildren<SimpleTextDropdown>(true)._cellPrefab;
}

tableCell = Instantiate(simpleTextTableCellPrefab);
Expand Down

0 comments on commit 807ef8a

Please sign in to comment.