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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user