session.send(client, new VoiceChatJoinMessage(group, info,
new PresenceInfo[0], chatType));
}
Cell cell = client.getCell();
ProximityComponent prox = cell.getComponent(ProximityComponent.class);
if (prox == null) {
logger.warning("NO PROX FOR CELL!");
return;
}
if (chatType.equals(ChatType.PUBLIC)) {
BoundingVolume[] bounds = new BoundingVolume[] {
new BoundingSphere((float) 1, new Vector3f())
};
logger.info("Adding proximity listener... " + prox
+ " bounds " + bounds[0]);
prox.addProximityListener(this, bounds);
} else {
prox.removeProximityListener(this);
}
}