it has some problem using this line (or something close to it)
public void drawWorldBackground(int tint)
{
if (this.mc.theWorld != null)
{
this.drawGradientRect(0, 0, this.width, this.height, -1072689136, -804253680);
}
else
{
this.drawBackground(tint);
}
}