Remove the call to client.refreshResources during loading (#4032)

This commit is contained in:
mezz authored and GitHub committed 2017-06-25 22:13:58 -07:00
1 parent 0f7ec7e7fd
commit 7892ca922c
4 files changed
+27 -59

No files matched your search

@@ -361,8 +361,14 @@ public class FMLClientHandler implements IFMLSidedHandler
return;
}
// Reload resources
client.refreshResources();
// This call is being phased out for performance reasons in 1.12,
// but we are keeping an option here in case something needs it for a little longer.
// See https://github.com/MinecraftForge/MinecraftForge/pull/4032
if (Boolean.parseBoolean(System.getProperty("fml.reloadResourcesOnStart", "false")))
{
client.refreshResources();
}
RenderingRegistry.loadEntityRenderers(Minecraft.getMinecraft().getRenderManager().entityRenderMap);
guiFactories = HashBiMap.create();
for (ModContainer mc : Loader.instance().getActiveModList())