From c6eb49289f5f6649928fdf17c03c41fd1acc10bd Mon Sep 17 00:00:00 2001 From: Jade Macho Date: Mon, 13 Sep 2021 23:35:57 +0200 Subject: [PATCH] Avoid audio bank path collision double ingest --- Celeste.Mod.mm/Patches/Audio.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Celeste.Mod.mm/Patches/Audio.cs b/Celeste.Mod.mm/Patches/Audio.cs index 81d223a09..9857e9e39 100644 --- a/Celeste.Mod.mm/Patches/Audio.cs +++ b/Celeste.Mod.mm/Patches/Audio.cs @@ -70,8 +70,11 @@ public static void Init() { // Load any additional banks. lock (Everest.Content.Map) { - foreach (ModAsset asset in Everest.Content.Map.Values.Where(asset => asset.Type == typeof(AssetTypeBank))) - IngestBank(asset); + foreach (ModAsset asset in Everest.Content.Map.Values.Where(asset => asset.Type == typeof(AssetTypeBank))) { + if (!ingestedModBankPaths.Contains(asset.PathVirtual)) { + IngestBank(asset); + } + } } AudioInitialized = true;