Renamed get to getById, map improvement
This commit is contained in:
@ -31,7 +31,7 @@ export class CharacterTypeStorage extends BaseStorage<any> {
|
||||
}
|
||||
|
||||
async getSpriteId(characterTypeId: string) {
|
||||
const characterType = await this.get(characterTypeId)
|
||||
const characterType = await this.getById(characterTypeId)
|
||||
return characterType?.sprite
|
||||
}
|
||||
}
|
||||
@ -42,7 +42,7 @@ export class CharacterHairStorage extends BaseStorage<any> {
|
||||
}
|
||||
|
||||
async getSpriteId(characterTypeId: string) {
|
||||
const characterType = await this.get(characterTypeId)
|
||||
const characterType = await this.getById(characterTypeId)
|
||||
return characterType?.sprite
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user