Skip to content

Commit

Permalink
fix: inverted isEmpty method on ComponentStyle
Browse files Browse the repository at this point in the history
Fixes SpigotMC#3610
Relates to SpigotMC#3569 and 737d545
  • Loading branch information
diogotcorreia committed Feb 1, 2024
1 parent 02c5c1e commit b0ffee7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ public Boolean isObfuscatedRaw()
*/
public boolean isEmpty()
{
return color != null || font != null || bold != null
|| italic != null || underlined != null
|| strikethrough != null || obfuscated != null;
return color == null && font == null && bold == null
&& italic == null && underlined == null
&& strikethrough == null && obfuscated == null;
}

@Override
Expand Down

0 comments on commit b0ffee7

Please sign in to comment.