Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
Made colorCode slicing range backward for 1 character @ TJImplementat…
Browse files Browse the repository at this point in the history
…ion.java
  • Loading branch information
DasCrystal authored Apr 29, 2024
1 parent e3528f8 commit 222bfcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public static BaseComponent applyLastFormat(BaseComponent component, String last
char nextChar = lastFormat.charAt(i + 1);

if (nextChar == 'x' && i + 13 < lastFormat.length()) {
String colorCode = lastFormat.substring(i + 2, i + 14);
String colorCode = lastFormat.substring(i + 2, i + 15);
// component.setColor(ChatColor.of("#" + colorCode.replace("§", "")));
component.setColor(ChatColor.of(colorCode.replace("§", "")));
i += 13;
Expand Down

0 comments on commit 222bfcd

Please sign in to comment.