We cannot check this here - the cluster is guaranteed to be size == 0 on the first insertion since we can't have called addBody until the constructor finishes. It used to be in objectAvailable which worked because it happened after the addBody calls were allowed to happen.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@74 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Mike Thomas
2006-09-19 20:56:20 +00:00
parent 8647002b71
commit 6611e60c1c
@@ -479,12 +479,6 @@ public class SpotSceneManager extends SceneManager
// configure our cluster record and publish it // configure our cluster record and publish it
_cluster.clusterOid = _clobj.getOid(); _cluster.clusterOid = _clobj.getOid();
_ssobj.addToClusters(_cluster); _ssobj.addToClusters(_cluster);
// if we didn't manage to add our creating user when we first
// started up, there's no point in our sticking around
if (size() == 0) {
destroy(true);
}
} }
public boolean addBody (BodyObject body) public boolean addBody (BodyObject body)