Fix demo mode crash. Closes #187

This commit is contained in:
Christian 2013-03-10 01:15:16 -05:00
parent d3d4e7683c
commit 72f55cfd08

View file

@ -130,6 +130,7 @@ public class FMLClientHandler implements IFMLSidedHandler
*/
public void beginMinecraftLoading(Minecraft minecraft)
{
client = minecraft;
if (minecraft.func_71355_q())
{
FMLLog.severe("DEMO MODE DETECTED, FML will not work. Finishing now.");
@ -138,7 +139,6 @@ public class FMLClientHandler implements IFMLSidedHandler
}
loading = true;
client = minecraft;
// TextureFXManager.instance().setClient(client);
FMLCommonHandler.instance().beginLoading(this);
new ModLoaderClientHelper(client);