mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 06:28: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();
|
nTag = nation.getName();
|
||||||
|
|
||||||
// Output depending on what tags are present
|
// Output depending on what tags are present
|
||||||
if ((tTag != "") && (nTag != ""))
|
if ((tTag.isEmpty()) && (nTag.isEmpty()))
|
||||||
return String.format(TownySettings.getChatTownNationTagFormat(), nTag, tTag);
|
return String.format(TownySettings.getChatTownNationTagFormat(), nTag, tTag);
|
||||||
|
|
||||||
if (nTag != "")
|
if (nTag.isEmpty())
|
||||||
return String.format(TownySettings.getChatNationTagFormat(), nTag);
|
return String.format(TownySettings.getChatNationTagFormat(), nTag);
|
||||||
|
|
||||||
if (tTag != "")
|
if (tTag.isEmpty())
|
||||||
return String.format(TownySettings.getChatTownTagFormat(), tTag);
|
return String.format(TownySettings.getChatTownTagFormat(), tTag);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user