Display a default skin on remote player entity
This commit is contained in:
parent
24640d13bb
commit
5c3036e18b
2 changed files with 9 additions and 7 deletions
|
@ -128,6 +128,10 @@ export abstract class Character extends Container {
|
|||
}
|
||||
|
||||
public addTextures(textures: string[], frame?: string | number): void {
|
||||
if (textures.length < 1) {
|
||||
throw new TextureError("no texture given");
|
||||
}
|
||||
|
||||
for (const texture of textures) {
|
||||
if (this.scene && !this.scene.textures.exists(texture)) {
|
||||
throw new TextureError("texture not found");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue