Update worldrendererThree.ts
This commit is contained in:
parent
70534d8b5a
commit
528d8f516b
1 changed files with 1 additions and 1 deletions
|
|
@ -769,7 +769,7 @@ export class WorldRendererThree extends WorldRendererCommon {
|
|||
renderHead (position: Vec3, rotation: number, isWall: boolean, blockEntity) {
|
||||
let textureData: string
|
||||
if (blockEntity.SkullOwner) {
|
||||
textureData = blockEntity.SkullOwner.Properties?.textures[0]?.Value
|
||||
textureData = blockEntity.SkullOwner.Properties?.textures?.[0]?.Value
|
||||
} else {
|
||||
textureData = blockEntity.profile?.properties?.find(p => p.name === 'textures')?.value
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue