mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 14:38:56 +00:00
fixed issue with contains liking cases when it shouldn't.
This commit is contained in:
1 parent
7094a38299
commit
1811d345b2
4 files changed
+16
-16
No files matched your search
@@ -69,13 +69,13 @@ public class War {
|
||||
*/
|
||||
public void addTown(final String town, String side) {
|
||||
if (side1.equalsIgnoreCase(side)) {
|
||||
if (!side1Towns.contains(town)) {
|
||||
if (!side1Towns.contains(town.toLowerCase())) {
|
||||
side1Towns.add(town.toLowerCase());
|
||||
Main.warLogger.log("Town "+ town + " joined " + this.name + " on " + side);
|
||||
return;
|
||||
}
|
||||
} else if(side2.equalsIgnoreCase(side)) {
|
||||
if (!side2Towns.contains(town)) {
|
||||
if (!side2Towns.contains(town.toLowerCase())) {
|
||||
side2Towns.add(town.toLowerCase());
|
||||
Main.warLogger.log("Town "+ town + " joined " + this.name + " on " + side);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user