Fixed the issue with getting the disband message twice

GroupObject
- getGroupMemberObjects() returns a HashSet now

GroupService
- uses a HashSet for sendGroupSystemMessage
This commit is contained in:
Skyler Lehan
2016-05-30 14:25:39 -04:00
parent abc0b640fb
commit 7203cf6310
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -41,8 +41,8 @@ import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
@@ -194,9 +194,9 @@ public class GroupObject extends SWGObject { // Extends INTO or TANO?
return members;
}
public ArrayList<CreatureObject> getGroupMemberObjects() {
public HashSet<CreatureObject> getGroupMemberObjects() {
ArrayList<CreatureObject> memberObjects = new ArrayList<>();
HashSet<CreatureObject> memberObjects = new HashSet<>();
synchronized (groupMembers) {