forked from External/mage
Equals should be compared with == but not equals()
This commit is contained in:
parent
1f9b51d833
commit
d93061c0bc
175 changed files with 348 additions and 344 deletions
|
|
@ -88,10 +88,10 @@ public class ChatPanelSeparated extends ChatPanelBasic {
|
|||
textColor = MESSAGE_COLOR;
|
||||
userSeparator = ": ";
|
||||
}
|
||||
if (color.equals(ChatMessage.MessageColor.ORANGE)) {
|
||||
if (color == ChatMessage.MessageColor.ORANGE) {
|
||||
textColor = "Orange";
|
||||
}
|
||||
if (color.equals(ChatMessage.MessageColor.YELLOW)) {
|
||||
if (color == ChatMessage.MessageColor.YELLOW) {
|
||||
textColor = "Yellow";
|
||||
}
|
||||
if (username != null && !username.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue