File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
engine/modules/entities/src/main/resources/view/entity-module Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ export class Sprite extends TextureBasedEntity {
2828 super . updateDisplay ( state , changed , globalData )
2929 if ( changed . image ) {
3030 try {
31- this . graphics . texture = PIXI . Texture . fromFrame ( state . image )
31+ if ( state . image !== null ) {
32+ this . graphics . texture = PIXI . Texture . fromFrame ( state . image )
33+ } else {
34+ this . graphics . texture = PIXI . Texture . EMPTY
35+ }
3236 } catch ( error ) {
3337 if ( ! this . missingTextures [ state . image ] ) {
3438 this . missingTextures [ state . image ] = true
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ The CodinGame SDK is regularly updated and improved. This document lets you know
77
88- A frame is created even if no players have been executed at the end of each gameTurn.
99
10+ ### 🐞 Bug fix
11+
12+ - Fixed an issue with sprites
13+
1014## 3.0.0
1115* January 11, 2019*
1216
You can’t perform that action at this time.
0 commit comments