Update BadgeImageManager.ts

This commit is contained in:
brenoepics 2022-03-16 17:12:10 +00:00
parent d7b5cbdf21
commit 4c458091e5

View File

@ -1,4 +1,4 @@
import { Resource, Texture } from '@pixi/core';
import { Resource, Texture } from '@pixi/core';
import { NitroContainer, NitroTexture } from '../../..';
import { IAssetManager } from '../../../core/asset/IAssetManager';
import { IMessageEvent } from '../../../core/communication/messages/IMessageEvent';
@ -202,6 +202,8 @@ export class BadgeImageManager implements IDisposable
const partNames = ((part.type === 'b') ? this._groupBases.get(part.key) : this._groupSymbols.get(part.key));
if(partNames)
{
for(const partName of partNames)
{
if(!partName || !partName.length) continue;
@ -222,6 +224,7 @@ export class BadgeImageManager implements IDisposable
container.addChild(sprite);
}
}
}
this._requestedBadges.delete(groupBadge.code);
this._groupBadgesQueue.delete(groupBadge.code);