<commit_before>--- ../src-base/minecraft/net/minecraft/client/Minecraft.java
+++ ../src-work/minecraft/net/minecraft/client/Minecraft.java
@@ -410,10 +410,10 @@
         this.field_110451_am = new SimpleReloadableResourceManager(this.field_110452_an);
         this.field_135017_as = new LanguageManager(this.field_110452_an, this.field_71474_y.field_74363_ab);
         this.field_110451_am.func_110542_a(this.field_135017_as);
-        this.func_110436_a();
+        net.minecraftforge.fml.client.FMLClientHandler.instance().beginMinecraftLoading(this, this.field_110449_ao, this.field_110451_am);
         this.field_71446_o = new TextureManager(this.field_110451_am);
         this.field_110451_am.func_110542_a(this.field_71446_o);
-        this.func_180510_a(this.field_71446_o);
+        net.minecraftforge.fml.client.SplashProgress.drawVanillaScreen(this.field_71446_o);
         this.func_175595_al();
         this.field_152350_aA = new SkinManager(this.field_71446_o, new File(this.field_110446_Y, "skins"), this.field_152355_az);
         this.field_71469_aa = new AnvilSaveConverter(new File(this.field_71412_D, "saves"));
@@ -449,6 +449,8 @@
             }
         });
         this.field_71417_B = new MouseHelper();
+        net.minecraftforge.fml.common.ProgressManager.ProgressBar bar= net.minecraftforge.fml.common.ProgressManager.push("Rendering Setup", 9);
+        bar.step("GL Setup");
         this.func_71361_d("Pre startup");
         GlStateManager.func_179098_w();
         GlStateManager.func_179103_j(7425);
@@ -462,17 +464,21 @@
         GlStateManager.func_179096_D();
         GlStateManager.func_179128_n(5888);
         this.func_71361_d("Startup");
+        bar.step("Loading Texture Map");
         this.field_147128_au = new TextureMap("textures");
         this.field_147128_au.func_147633_a(this.field_71474_y.field_151442_I);
         this.field_71446_o.func_110580_a(TextureMap.field_110575_b, this.field_147128_au);
         this.field_71446_o.func_110577_a(TextureMap.field_110575_b);
         this.field_147128_au.func_174937_a(false, this.field_71474_y.field_151442_I > 0);
+        bar.step("Loading Model Manager");
         this.field_175617_aL = new ModelManager(this.field_147128_au);
         this.field_110451_am.func_110542_a(this.field_175617_aL);
+        bar.step("Loading Item Renderer");
         this.field_175621_X = new RenderItem(this.field_71446_o, this.field_175617_aL);
         this.field_175616_W = new RenderManager(this.field_71446_o, this.field_175621_X);
         this.field_175620_Y = new ItemRenderer(this);
         this.field_110451_am.func_110542_a(this.field_175621_X);
+        bar.step("Loading Entity Renderer");
         this.field_71460_t = new EntityRenderer(this, this.field_110451_am);
         this.field_110451_am.func_110542_a(this.field_71460_t);
         this.field_175618_aM = new BlockRendererDispatcher(this.field_175617_aL.func_174954_c(), this.field_71474_y);
@@ -482,19 +488,21 @@
         this.field_71458_u = new GuiAchievement(this);
         GlStateManager.func_179083_b(0, 0, this.field_71443_c, this.field_71440_d);
         this.field_71452_i = new EffectRenderer(this.field_71441_e, this.field_71446_o);
+        net.minecraftforge.fml.common.ProgressManager.pop(bar);
+        net.minecraftforge.fml.client.FMLClientHandler.instance().finishMinecraftLoading();
         this.func_71361_d("Post startup");
         this.field_71456_v = new GuiIngame(this);
 
         if (this.field_71475_ae != null)
         {
-            this.func_147108_a(new GuiConnecting(new GuiMainMenu(), this, this.field_71475_ae, this.field_71477_af));
+            net.minecraftforge.fml.client.FMLClientHandler.instance().connectToServerAtStartup(this.field_71475_ae, this.field_71477_af);
         }
         else
         {
             this.func_147108_a(new GuiMainMenu());
         }
 
-        this.field_71446_o.func_147645_c(this.field_152354_ay);
+        net.minecraftforge.fml.client.SplashProgress.clearVanillaResources(field_71446_o, field_152354_ay);
         this.field_152354_ay = null;
         this.field_71461_s = new LoadingScreenRenderer(this);
 
@@ -503,6 +511,7 @@
             this.func_71352_k();
         }
 
+        net.minecraftforge.fml.client.FMLClientHandler.instance().onInitializationComplete();
         try
         {
             Display.setVSyncEnabled(this.field_71474_y.field_74352_v);
@@ -681,21 +690,23 @@
         File file2 = new File(file1, "crash-" + (new SimpleDateFormat("yyyy-MM-dd_HH.mm.ss")).format(new Date()) + "-client.txt");
         Bootstrap.func_179870_a(p_71377_1_.func_71502_e());
 
+        int retVal;
         if (p_71377_1_.func_71497_f() != null)
         {
             Bootstrap.func_179870_a("#@!@# Game crashed! Crash report saved to: #@!@# " + p_71377_1_.func_71497_f());
-            System.exit(-1);
+            retVal = -1;
         }
         else if (p_71377_1_.func_147149_a(file2))
         {
             Bootstrap.func_179870_a("#@!@# Game crashed! Crash report saved to: #@!@# " + file2.getAbsolutePath());
-            System.exit(-1);
+            retVal = -1;
         }
         else
         {<commit_msg>Finish loading screen before going fullscreen. Closes MinecraftForge/FML#662<commit_after>--- ../src-base/minecraft/net/minecraft/client/Minecraft.java
+++ ../src-work/minecraft/net/minecraft/client/Minecraft.java
@@ -410,10 +410,10 @@
         this.field_110451_am = new SimpleReloadableResourceManager(this.field_110452_an);
         this.field_135017_as = new LanguageManager(this.field_110452_an, this.field_71474_y.field_74363_ab);
         this.field_110451_am.func_110542_a(this.field_135017_as);
-        this.func_110436_a();
+        net.minecraftforge.fml.client.FMLClientHandler.instance().beginMinecraftLoading(this, this.field_110449_ao, this.field_110451_am);
         this.field_71446_o = new TextureManager(this.field_110451_am);
         this.field_110451_am.func_110542_a(this.field_71446_o);
-        this.func_180510_a(this.field_71446_o);
+        net.minecraftforge.fml.client.SplashProgress.drawVanillaScreen(this.field_71446_o);
         this.func_175595_al();
         this.field_152350_aA = new SkinManager(this.field_71446_o, new File(this.field_110446_Y, "skins"), this.field_152355_az);
         this.field_71469_aa = new AnvilSaveConverter(new File(this.field_71412_D, "saves"));
@@ -449,6 +449,8 @@
             }
         });
         this.field_71417_B = new MouseHelper();
+        net.minecraftforge.fml.common.ProgressManager.ProgressBar bar= net.minecraftforge.fml.common.ProgressManager.push("Rendering Setup", 9);
+        bar.step("GL Setup");
         this.func_71361_d("Pre startup");
         GlStateManager.func_179098_w();
         GlStateManager.func_179103_j(7425);
@@ -462,17 +464,21 @@
         GlStateManager.func_179096_D();
         GlStateManager.func_179128_n(5888);
         this.func_71361_d("Startup");
+        bar.step("Loading Texture Map");
         this.field_147128_au = new TextureMap("textures");
         this.field_147128_au.func_147633_a(this.field_71474_y.field_151442_I);
         this.field_71446_o.func_110580_a(TextureMap.field_110575_b, this.field_147128_au);
         this.field_71446_o.func_110577_a(TextureMap.field_110575_b);
         this.field_147128_au.func_174937_a(false, this.field_71474_y.field_151442_I > 0);
+        bar.step("Loading Model Manager");
         this.field_175617_aL = new ModelManager(this.field_147128_au);
         this.field_110451_am.func_110542_a(this.field_175617_aL);
+        bar.step("Loading Item Renderer");
         this.field_175621_X = new RenderItem(this.field_71446_o, this.field_175617_aL);
         this.field_175616_W = new RenderManager(this.field_71446_o, this.field_175621_X);
         this.field_175620_Y = new ItemRenderer(this);
         this.field_110451_am.func_110542_a(this.field_175621_X);
+        bar.step("Loading Entity Renderer");
         this.field_71460_t = new EntityRenderer(this, this.field_110451_am);
         this.field_110451_am.func_110542_a(this.field_71460_t);
         this.field_175618_aM = new BlockRendererDispatcher(this.field_175617_aL.func_174954_c(), this.field_71474_y);
@@ -482,22 +488,25 @@
         this.field_71458_u = new GuiAchievement(this);
         GlStateManager.func_179083_b(0, 0, this.field_71443_c, this.field_71440_d);
         this.field_71452_i = new EffectRenderer(this.field_71441_e, this.field_71446_o);
+        net.minecraftforge.fml.common.ProgressManager.pop(bar);
+        net.minecraftforge.fml.client.FMLClientHandler.instance().finishMinecraftLoading();
         this.func_71361_d("Post startup");
         this.field_71456_v = new GuiIngame(this);
 
         if (this.field_71475_ae != null)
         {
-            this.func_147108_a(new GuiConnecting(new GuiMainMenu(), this, this.field_71475_ae, this.field_71477_af));
+            net.minecraftforge.fml.client.FMLClientHandler.instance().connectToServerAtStartup(this.field_71475_ae, this.field_71477_af);
         }
         else
         {
             this.func_147108_a(new GuiMainMenu());
         }
 
-        this.field_71446_o.func_147645_c(this.field_152354_ay);
+        net.minecraftforge.fml.client.SplashProgress.clearVanillaResources(field_71446_o, field_152354_ay);
         this.field_152354_ay = null;
         this.field_71461_s = new LoadingScreenRenderer(this);
 
+        net.minecraftforge.fml.client.FMLClientHandler.instance().onInitializationComplete();
         if (this.field_71474_y.field_74353_u && !this.field_71431_Q)
         {
             this.func_71352_k();
@@ -681,21 +690,23 @@
         File file2 = new File(file1, "crash-" + (new SimpleDateFormat("yyyy-MM-dd_HH.mm.ss")).format(new Date()) + "-client.txt");
         Bootstrap.func_179870_a(p_71377_1_.func_71502_e());
 
+        int retVal;
         if (p_71377_1_.func_71497_f() != null)
         {
             Bootstrap.func_179870_a("#@!@# Game crashed! Crash report saved to: #@!@# " + p_71377_1_.func_71497_f());
-            System.exit(-1);
+            retVal = -1;
         }
         else if (p_71377_1_.func_147149_a(file2))
         {
             Bootstrap.func_179870_a("#@!@# Game crashed! Crash report saved to: #@!@# " + file2.getAbsolutePath());
-            System.exit(-1);
+            retVal = -1;
         }
         else
         {
{'fraction_non_alphanumeric': 0.1217089401099431, 'fraction_numerical': 0.13482495901244093, 'mean_word_length': 3.1646586345381524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5216473', 'n_tokens_mistral': 4580, 'n_tokens_neox': 3727, 'n_words': 396}