We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 667b4fd commit c1694b1Copy full SHA for c1694b1
engine/modules/endscreen/src/main/resources/view/endscreen-module/EndScreenModule.js
@@ -203,12 +203,12 @@ export class EndScreenModule {
203
204
layer.backgroundRanking = background
205
206
- let sprite = this.spriteName || 'logo.png'
+ let sprite = this.spriteName
207
var titleRanking
208
- try {
+ if (PIXI.utils.TextureCache.hasOwnProperty(sprite)) {
209
titleRanking = new PIXI.Sprite.fromFrame(sprite)
210
- } catch (error) {
211
- ErrorLog.push(new MissingImageError(sprite, error))
+ } else {
+ ErrorLog.push(new MissingImageError(sprite))
212
titleRanking = new PIXI.Sprite(PIXI.Texture.EMPTY)
213
}
214
titleRanking.anchor.x = titleRanking.anchor.y = 0.5
0 commit comments