Update worldrendererThree.ts

This commit is contained in:
Vitaly 2025-09-04 21:55:02 +03:00 committed by GitHub
commit 528d8f516b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}