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 {
28
28
super . updateDisplay ( state , changed , globalData )
29
29
if ( changed . image ) {
30
30
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
+ }
32
36
} catch ( error ) {
33
37
if ( ! this . missingTextures [ state . image ] ) {
34
38
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
7
7
8
8
- A frame is created even if no players have been executed at the end of each gameTurn.
9
9
10
+ ### 🐞 Bug fix
11
+
12
+ - Fixed an issue with sprites
13
+
10
14
## 3.0.0
11
15
* January 11, 2019*
12
16
You can’t perform that action at this time.
0 commit comments