Fix eslint errors

This commit is contained in:
Bill 2022-03-16 19:42:55 -04:00
parent 5a1e4aa63d
commit 503a06e414

View File

@ -207,20 +207,20 @@ export class BadgeImageManager implements IDisposable
for(const partName of partNames) for(const partName of partNames)
{ {
if(!partName || !partName.length) continue; if(!partName || !partName.length) continue;
const texture = this._assets.getTexture(`badgepart_${ partName }`); const texture = this._assets.getTexture(`badgepart_${ partName }`);
if(!texture) continue; if(!texture) continue;
const { x, y } = part.calculatePosition(texture); const { x, y } = part.calculatePosition(texture);
const sprite = new NitroSprite(texture); const sprite = new NitroSprite(texture);
sprite.position.set(x, y); sprite.position.set(x, y);
if(isFirst) sprite.tint = parseInt(this._groupPartColors.get(part.color), 16); if(isFirst) sprite.tint = parseInt(this._groupPartColors.get(part.color), 16);
isFirst = false; isFirst = false;
container.addChild(sprite); container.addChild(sprite);
} }
} }