From e50c0116ca5800920fff5ba8d3bad061bd3c0f7b Mon Sep 17 00:00:00 2001 From: Paul Heidenreich Date: Tue, 20 Nov 2018 18:19:46 +0100 Subject: [PATCH] Fix Converting Nested Extra Components (#10) Some servers nest multiple components with extra components into deep structures. --- src/MinecraftJsonColors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MinecraftJsonColors.php b/src/MinecraftJsonColors.php index 66fdf2f..a3a251c 100644 --- a/src/MinecraftJsonColors.php +++ b/src/MinecraftJsonColors.php @@ -61,7 +61,7 @@ public static function convertToLegacy($json) { $legacy .= $component; } else { //reset the formatting to make the components independent - $legacy .= self::parseElement($component) . self::COLOR_CHAR . self::$formatting['reset']; + $legacy .= self::convertToLegacy($component) . self::COLOR_CHAR . self::$formatting['reset']; } } }