diff --git a/src/room/renderer/RoomSpriteCanvas.ts b/src/room/renderer/RoomSpriteCanvas.ts index fafd9c78..4c09710f 100644 --- a/src/room/renderer/RoomSpriteCanvas.ts +++ b/src/room/renderer/RoomSpriteCanvas.ts @@ -501,7 +501,7 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas { sortableSprite = new SortableSprite(); - sortableCache._Str_12937(sortableSprite); + sortableCache.addSprite(sortableSprite); this._sortableSprites.push(sortableSprite); diff --git a/src/room/renderer/cache/RoomObjectSortableSpriteCacheItem.ts b/src/room/renderer/cache/RoomObjectSortableSpriteCacheItem.ts index c4b78d1b..8b5c0c2b 100644 --- a/src/room/renderer/cache/RoomObjectSortableSpriteCacheItem.ts +++ b/src/room/renderer/cache/RoomObjectSortableSpriteCacheItem.ts @@ -30,7 +30,7 @@ export class RoomObjectSortableSpriteCacheItem this._Str_20276(0); } - public _Str_12937(sprite: SortableSprite): void + public addSprite(sprite: SortableSprite): void { this._sprites.push(sprite); }