From e86a8384be11743aa7317d5aa76056a1616d72df Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Sun, 14 May 2023 17:05:45 +0200 Subject: [PATCH] ApplicationScope - Only initialize 'AppDataCacher' once in 'ApplicationScope.Initialize' --- PCK-Studio/Internals/ApplicationScope.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCK-Studio/Internals/ApplicationScope.cs b/PCK-Studio/Internals/ApplicationScope.cs index 049fb699..97efbcc1 100644 --- a/PCK-Studio/Internals/ApplicationScope.cs +++ b/PCK-Studio/Internals/ApplicationScope.cs @@ -24,7 +24,7 @@ namespace PckStudio Stopwatch stopwatch = Stopwatch.StartNew(); { _entityImages ??= Resources.entities_sheet.CreateImageList(32).ToArray(); - AppDataCacher = new FileCacher(Program.AppDataCache); + AppDataCacher ??= new FileCacher(Program.AppDataCache); _ = AnimationResources.JsonTileData; _ = AnimationResources.ItemList; _ = AnimationResources.BlockList;