fix: 95% WORKING PARSER NOW YAY (styles still get stuck sometimes)

This commit is contained in:
ChomeNS
2025-01-03 14:32:38 +07:00
parent 1d8ec221ad
commit 1acc0fdbfd
2 changed files with 3 additions and 3 deletions

View File

@@ -237,7 +237,7 @@ public class ComponentUtilities {
final String result =
lastStyle + color + style +
originalResult +
resetCode;
(lastStyle.isEmpty() ? resetCode : "");
lastStyle = color + style;
@@ -307,7 +307,7 @@ public class ComponentUtilities {
.get(idx)
.asComponent(),
type
) + color + style // IMPORTANT!!!!
) + lastStyle + color + style // IMPORTANT!!!!
)
);
} else {