mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-03 04:16:19 -04:00
bug fixes
This commit is contained in:
@@ -211,11 +211,13 @@ public class GroupService implements INetworkDispatch {
|
||||
if(creature.getGroupId() == 0)
|
||||
return;
|
||||
|
||||
GroupObject group = (GroupObject) core.objectService.getObject(creature.getGroupId());
|
||||
SWGObject object = core.objectService.getObject(creature.getGroupId());
|
||||
|
||||
if(group == null)
|
||||
if(object == null || !(object instanceof GroupObject))
|
||||
return;
|
||||
|
||||
GroupObject group = (GroupObject) object;
|
||||
|
||||
List<SWGObject> memberList = new ArrayList<SWGObject>(group.getMemberList());
|
||||
|
||||
if(group.getGroupLeader() != creature && group.getMemberList().size() > 2) {
|
||||
|
||||
Reference in New Issue
Block a user