mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 22:44:32 +00:00
More stuff as I roll out the changes
This commit is contained in:
1 parent
ae2039c65d
commit
baec9785a2
16 files changed
+216
-37
No files matched your search
@@ -43,6 +43,7 @@ import javax.imageio.ImageIO;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.google.common.base.Throwables;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -173,6 +174,12 @@ public class FMLClientHandler implements IFMLSidedHandler
|
||||
|
||||
public void onPreLoad(Minecraft minecraft)
|
||||
{
|
||||
if (minecraft.func_55063_q())
|
||||
{
|
||||
FMLLog.severe("DEMO MODE DETECTED, FML will not work. Finishing now.");
|
||||
haltGame("FML will not run in demo mode", new RuntimeException());
|
||||
return;
|
||||
}
|
||||
client = minecraft;
|
||||
ObfuscationReflectionHelper.detectObfuscation(World.class);
|
||||
FMLCommonHandler.instance().beginLoading(this);
|
||||
@@ -205,6 +212,7 @@ public class FMLClientHandler implements IFMLSidedHandler
|
||||
public void haltGame(String message, Throwable t)
|
||||
{
|
||||
client.func_55071_b(new CrashReport(message, t));
|
||||
throw Throwables.propagate(t);
|
||||
}
|
||||
/**
|
||||
* Called a bit later on during initialization to finish loading mods
|
||||
@@ -740,7 +748,7 @@ public class FMLClientHandler implements IFMLSidedHandler
|
||||
}
|
||||
|
||||
public void registerTextureOverrides(RenderEngine renderer) {
|
||||
for (ModContainer mod : Loader.getModList()) {
|
||||
for (ModContainer mod : Loader.instance().getActiveModList()) {
|
||||
registerAnimatedTexturesFor(mod);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user