1
0
forked from noxious/server

frameCount fix

This commit is contained in:
Dennis Postma 2025-01-10 19:29:28 +01:00
parent a4437fadce
commit 3869eefaaf
2 changed files with 5 additions and 4 deletions

6
package-lock.json generated
View File

@ -5188,9 +5188,9 @@
"license": "MIT"
},
"node_modules/long": {
"version": "5.2.3",
"resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz",
"integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==",
"version": "5.2.4",
"resolved": "https://registry.npmjs.org/long/-/long-5.2.4.tgz",
"integrity": "sha512-qtzLbJE8hq7VabR3mISmVGtoXP8KGc2Z/AT8OuqlYD7JTR3oqrgwdjnk07wpj1twXxYmgDXgoKVWUG/fReSzHg==",
"license": "Apache-2.0"
},
"node_modules/lru-cache": {

View File

@ -22,7 +22,8 @@ export class Sprite extends BaseSprite {
isLooping: spriteAction.getIsLooping(),
frameWidth: spriteAction.getFrameWidth(),
frameHeight: spriteAction.getFrameHeight(),
frameRate: spriteAction.getFrameRate()
frameRate: spriteAction.getFrameRate(),
frameCount: spriteAction.getSprites()?.length
}))
}
} catch (error) {