if ((s.getType() & Spatial.GEOMETRY) != 0) {
if ((s.getType() & SceneElement.GEOMETRY) != 0) {
    private void maskLightStates(Spatial s) {        if ((s.getType() & Spatial.GEOMETRY) != 0) {            Geometry g = (Geometry)s;            for (int x = 0; x < g.getBatchCount(); x++) {                LightState ls = (LightState) g.getBatch(x).states[RenderState.RS_LIGHT];                if (ls != null && !lightStates.contains(ls)) {                    lightStates.add(ls);                    ls.pushLightMask();                    ls.setLightMask(mask);                }            }        }        if ((s.getType() & Spatial.NODE) != 0) {            Node n = (Node)s;            ArrayList children = n.getChildren();            if (children != null) {                for (int i = children.size(); --i >= 0; ) {                    Spatial child = (Spatial)children.get(i);                    maskLightStates(child);                }            }        }    }