Revert "Fix refreshResources not happening if an error occurs."

This reverts commit fff86ee9d3.
This commit is contained in:
Christian committed 2014-05-08 09:56:43 -04:00
1 parent 362ec8dee7
commit b9de9ebc96
5 files changed
+21 -9

No files matched your search

@@ -229,10 +229,6 @@ public class FMLClientHandler implements IFMLSidedHandler
haltGame("There was a severe problem during mod loading that has caused the game to fail", le);
return;
}
finally
{
client.refreshResources();
}
Map<String,Map<String,String>> sharedModList = (Map<String, Map<String, String>>) Launch.blackboard.get("modList");
if (sharedModList == null)
@@ -285,8 +281,7 @@ public class FMLClientHandler implements IFMLSidedHandler
return;
}
// Reload resources has to happen early, or minecraft itself has resource loading issues
// This is a second refresh for mods that register stuff late!
// Reload resources
client.refreshResources();
RenderingRegistry.instance().loadEntityRenderers((Map<Class<? extends Entity>, Render>)RenderManager.instance.entityRenderMap);
guiFactories = HashBiMap.create();
@@ -571,6 +566,12 @@ public class FMLClientHandler implements IFMLSidedHandler
}
}
@Override
public void updateResourcePackList()
{
client.refreshResources();
}
public IResourcePack getResourcePackFor(String modId)
{
return resourcePackMap.get(modId);