public final void setProgress(int var1) {
      if(!this.minecraft.running) {
         throw new StopGameException();
      } else {
         long var2;
         if((var2 = System.currentTimeMillis()) - this.start < 0L || var2 - this.start >= 20L) {
            this.start = var2;
            int var4 = this.minecraft.width * 240 / this.minecraft.height;
            int var5 = this.minecraft.height * 240 / this.minecraft.height;
            GL11.glClear(16640);
            ShapeRenderer var6 = ShapeRenderer.instance;
            int var7 = this.minecraft.textureManager.load("/dirt.png");
            GL11.glBindTexture(3553, var7);
            float var10 = 32.0F;
            var6.begin();
            var6.color(4210752);
            var6.vertexUV(0.0F, (float)var5, 0.0F, 0.0F, (float)var5 / var10);
            var6.vertexUV((float)var4, (float)var5, 0.0F, (float)var4 / var10, (float)var5 / var10);
            var6.vertexUV((float)var4, 0.0F, 0.0F, (float)var4 / var10, 0.0F);
            var6.vertexUV(0.0F, 0.0F, 0.0F, 0.0F, 0.0F);
            var6.end();
            if(var1 >= 0) {
               var7 = var4 / 2 - 50;
               int var8 = var5 / 2 + 16;
               GL11.glDisable(3553);
               var6.begin();
               var6.color(8421504);
               var6.vertex((float)var7, (float)var8, 0.0F);
               var6.vertex((float)var7, (float)(var8 + 2), 0.0F);
               var6.vertex((float)(var7 + 100), (float)(var8 + 2), 0.0F);
               var6.vertex((float)(var7 + 100), (float)var8, 0.0F);
               var6.color(8454016);
               var6.vertex((float)var7, (float)var8, 0.0F);
               var6.vertex((float)var7, (float)(var8 + 2), 0.0F);
               var6.vertex((float)(var7 + var1), (float)(var8 + 2), 0.0F);
               var6.vertex((float)(var7 + var1), (float)var8, 0.0F);
               var6.end();
               GL11.glEnable(3553);
            }

            this.minecraft.fontRenderer.render(this.title, (var4 - this.minecraft.fontRenderer.getWidth(this.title)) / 2, var5 / 2 - 4 - 16, 16777215);
            this.minecraft.fontRenderer.render(this.text, (var4 - this.minecraft.fontRenderer.getWidth(this.text)) / 2, var5 / 2 - 4 + 8, 16777215);
            Display.update();

            try {
               Thread.yield();
            } catch (Exception var9) {
               ;
            }
         }
      }
   }