Skip to content

Commit

Permalink
fix legacy nametag customisation
Browse files Browse the repository at this point in the history
  • Loading branch information
nikk15 committed Jul 27, 2023
1 parent 7c2ec8d commit bba7461
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ function getCurrentTheme() {

function getThemeColor(name) {
const theme = getCurrentTheme();
return theme?.variables?.[name] || DEFAULT_COLORS[name];
console.log(theme)
// theme?.[name] ensures legacy variables for nametag colors are taken into account
return theme?.variables?.[name] || theme?.[name] || DEFAULT_COLORS[name];
}

function updateTextButtonColors() {
Expand Down

0 comments on commit bba7461

Please sign in to comment.