From 7f4523b84fe4b4b91d9c3aca6c62f0367f6854dd Mon Sep 17 00:00:00 2001 From: Silabear <56885288+Silabear@users.noreply.github.com> Date: Thu, 11 Sep 2025 22:33:35 +0100 Subject: [PATCH] import fix --- src/lib/text/nbt.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/text/nbt.ts b/src/lib/text/nbt.ts index 79401c5..ebb7e3e 100644 --- a/src/lib/text/nbt.ts +++ b/src/lib/text/nbt.ts @@ -194,12 +194,22 @@ function mapPropertiesToType(source: MinecraftText): JSONContent { }; } else if (source.atlas) { finalText = { - type: "object", + type: "atlas_object", attrs: { atlas: source.atlas, sprite: source.sprite, }, }; + } else if (source.player) { + finalText = { + type: "player_object", + attrs: { + hat: source.hat || true, + player: { + name: source.player.name + }, + }, + }; } else { finalText = { type: "text",