mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
Remove nulls from image1-5 array
This commit is contained in:
parent
e7f29cb431
commit
3801a7fb13
1 changed files with 8 additions and 0 deletions
|
|
@ -2165,6 +2165,10 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
if (didAny)
|
if (didAny)
|
||||||
{
|
{
|
||||||
Log.Verbose($"Plugin images for {manifest.InternalName} loaded from disk");
|
Log.Verbose($"Plugin images for {manifest.InternalName} loaded from disk");
|
||||||
|
|
||||||
|
if (pluginImages.Contains(null))
|
||||||
|
pluginImages = pluginImages.Where(image => image != null).ToArray();
|
||||||
|
|
||||||
this.pluginImagesMap[manifest.InternalName] = pluginImages;
|
this.pluginImagesMap[manifest.InternalName] = pluginImages;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
@ -2217,6 +2221,10 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
if (didAny)
|
if (didAny)
|
||||||
{
|
{
|
||||||
Log.Verbose($"Plugin images for {manifest.InternalName} downloaded");
|
Log.Verbose($"Plugin images for {manifest.InternalName} downloaded");
|
||||||
|
|
||||||
|
if (pluginImages.Contains(null))
|
||||||
|
pluginImages = pluginImages.Where(image => image != null).ToArray();
|
||||||
|
|
||||||
this.pluginImagesMap[manifest.InternalName] = pluginImages;
|
this.pluginImagesMap[manifest.InternalName] = pluginImages;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue