From c89434557b2a60283485d28fea0ed0b6806c6fc3 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 26 Oct 2026 04:09:25 +0100 Subject: [PATCH] Player heads without a skin show slim steve, as vanilla SkullBlockRenderer's SKIN_BY_TYPE is DefaultPlayerSkin.getDefaultTexture(), DEFAULT_SKINS[6] = entity/player/slim/steve; the block_entity_render harness found Horizon drawing nothing for heads without a profile. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/block_entity_render.rs | 4 ++-- crates/horizon-client/src/containers.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/horizon-client/src/block_entity_render.rs b/crates/horizon-client/src/block_entity_render.rs index 620640188..10c5e2509 100644 --- a/crates/horizon-client/src/block_entity_render.rs +++ b/crates/horizon-client/src/block_entity_render.rs @@ -732,7 +732,7 @@ pub struct Scene<'a> { pub banner: &'a dyn Fn([i32; 3]) -> Vec<(String, u32)>, /// The skin sprite a `player_head` shows at a position (`SkullBlockRenderer` /// profile → skin): a downloaded `skins/` slot or the profile's - /// `DefaultPlayerSkin` fallback; None keeps `SKIN_BY_TYPE` (steve). + /// `DefaultPlayerSkin` fallback; None keeps `SKIN_BY_TYPE` (`DefaultPlayerSkin.getDefaultTexture`, slim steve). pub skull: &'a dyn Fn([i32; 3]) -> Option<&'a str>, /// Font glyph cell (none for blank glyphs such as the space) and advance. pub glyph: &'a dyn Fn(char) -> (Option, f32), @@ -1281,7 +1281,7 @@ impl BlockEntityRenderer { SkullType::Creeper => ("creeper_head", "entity/creeper/creeper"), SkullType::Dragon => ("dragon_skull", "entity/enderdragon/dragon"), SkullType::Piglin => ("piglin_head", "entity/piglin/piglin"), - SkullType::Player => ("player_head", "entity/player/wide/steve"), + SkullType::Player => ("player_head", "entity/player/slim/steve"), }; // SkullBlockRenderer.getRenderType: the profile's skin when it // resolves, `SKIN_BY_TYPE` (steve) otherwise. diff --git a/crates/horizon-client/src/containers.rs b/crates/horizon-client/src/containers.rs index 1f8fad151..a968408db 100644 --- a/crates/horizon-client/src/containers.rs +++ b/crates/horizon-client/src/containers.rs @@ -123,8 +123,9 @@ impl SkullSkin { let location = crate::skins::skin_location(&crate::skins::texture_hash(&url)?); Some((url, location)) }); + // DefaultPlayerSkin.get(id), or getDefaultSkin (slim steve) without an id. let fallback = crate::skins::profile_uuid_nbt(profile) - .map_or("entity/player/wide/steve", crate::tab_list::default_skin); + .map_or("entity/player/slim/steve", crate::tab_list::default_skin); Self { download, fallback } } }