Change detection.
This commit is contained in:
parent
259bf27f3e
commit
37e9994efe
@ -464,15 +464,15 @@ public class Faction extends Entity<Faction> implements EconomyParticipator, Nam
|
|||||||
|
|
||||||
public boolean setInvited(String playerId, boolean invited)
|
public boolean setInvited(String playerId, boolean invited)
|
||||||
{
|
{
|
||||||
TreeSet<String> invitedPlayerIds = this.getInvitedPlayerIds();
|
List<String> invitedPlayerIds = new ArrayList<String>(this.getInvitedPlayerIds());
|
||||||
boolean ret;
|
boolean ret;
|
||||||
if (invited)
|
if (invited)
|
||||||
{
|
{
|
||||||
ret = invitedPlayerIds.add(playerId.toLowerCase());
|
ret = invitedPlayerIds.add(playerId);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = invitedPlayerIds.remove(playerId.toLowerCase());
|
ret = invitedPlayerIds.remove(playerId);
|
||||||
}
|
}
|
||||||
this.setInvitedPlayerIds(invitedPlayerIds);
|
this.setInvitedPlayerIds(invitedPlayerIds);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user