From 7bd46b452836e2e9ebcc9a7fef791fd1f45b5edd Mon Sep 17 00:00:00 2001 From: Lenny Lord <32369619+thelennylord@users.noreply.github.com> Date: Thu, 20 Nov 2025 01:29:00 +0530 Subject: [PATCH] Text components do not need to wrapped as a JSON string --- js/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/main.js b/js/main.js index 8ee8dd9..3aa3b20 100644 --- a/js/main.js +++ b/js/main.js @@ -723,6 +723,12 @@ function generateCustomName() { if (nameObfuscated) { props.obfuscated = nameObfuscated; } + + if (mcVersion >= MC_VERSION.v1_21_5) { + // Since 1.21.5+, text components are no longer stored as JSON wrapped by a string. + // So just return the props object instead + return props + } let stringified = JSON.stringify(props); if (mcVersion < MC_VERSION.v1_14) {