Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Made it so the mod loads assets in alphabetical order (displaying the…
Browse files Browse the repository at this point in the history
…m accordingly in game)
  • Loading branch information
REHERC committed Dec 20, 2020
1 parent 2811467 commit 72264de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Distance.CustomCar/Data/Car/CarAssetBundles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;

namespace Distance.CustomCar.Data.Car
Expand All @@ -19,7 +20,7 @@ public CarAssetBundles(DirectoryInfo assetsDirectory, CarFactory factory)

public void LoadAll()
{
foreach (FileInfo file in assetsDirectory_.GetFiles("*", SearchOption.AllDirectories))
foreach (FileInfo file in assetsDirectory_.GetFiles("*", SearchOption.AllDirectories).OrderBy(x => x.Name))
{
LoadAssetsFile(file);
}
Expand Down

0 comments on commit 72264de

Please sign in to comment.