Color ignored when code is found

The hat color is not stored/visualized when a hat with code is found. This is needed when different colored caps are used together with code or as before with a black dot.