mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 14:38:57 +00:00
fixed .isEmpty()
This commit is contained in:
1 parent
a13fd4e721
commit
9bff9bea6e
1 file changed
+3
-3
@@ -219,13 +219,13 @@ public class TownyChatFormatter {
|
||||
nTag = nation.getName();
|
||||
|
||||
// Output depending on what tags are present
|
||||
if ((tTag != "") && (nTag != ""))
|
||||
if ((tTag.isEmpty()) && (nTag.isEmpty()))
|
||||
return String.format(TownySettings.getChatTownNationTagFormat(), nTag, tTag);
|
||||
|
||||
if (nTag != "")
|
||||
if (nTag.isEmpty())
|
||||
return String.format(TownySettings.getChatNationTagFormat(), nTag);
|
||||
|
||||
if (tTag != "")
|
||||
if (tTag.isEmpty())
|
||||
return String.format(TownySettings.getChatTownTagFormat(), tTag);
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user