Boss bar fix for 1.8

Not perfect, but works for what I need it for