Fix generator outputting power, add oredict support for glass