Skip to content

Commit

Permalink
Fix TeamName being wrapped two times
Browse files Browse the repository at this point in the history
  • Loading branch information
Rothes authored Oct 26, 2023
1 parent 229b907 commit e9b79a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public static void setDisplayName(Object object, WrappedChatComponent wrappedCha
}

public static BaseComponent getTeamName(Object object) {
return ComponentSerializer.parse(WrappedChatComponent.fromHandle(getTeamNameWrapped(object)).getJson())[0];
return ComponentSerializer.parse(getTeamNameWrapped(object).getJson())[0];
}

public static WrappedChatComponent getTeamNameWrapped(Object object) {
Expand Down

0 comments on commit e9b79a3

Please sign in to comment.