Skip to content

Commit 7f4523b

Browse files
committed
import fix
1 parent fe2182f commit 7f4523b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/lib/text/nbt.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,22 @@ function mapPropertiesToType(source: MinecraftText): JSONContent {
194194
};
195195
} else if (source.atlas) {
196196
finalText = {
197-
type: "object",
197+
type: "atlas_object",
198198
attrs: {
199199
atlas: source.atlas,
200200
sprite: source.sprite,
201201
},
202202
};
203+
} else if (source.player) {
204+
finalText = {
205+
type: "player_object",
206+
attrs: {
207+
hat: source.hat || true,
208+
player: {
209+
name: source.player.name
210+
},
211+
},
212+
};
203213
} else {
204214
finalText = {
205215
type: "text",

0 commit comments

Comments
 (0)