From 44706ae343efdd8d06bcca584c4cabfa2a20527d Mon Sep 17 00:00:00 2001 From: LexManos Date: Thu, 21 Jun 2012 03:17:33 -0700 Subject: [PATCH] Added stupididty exception for common issue with getMinecraftLogger. --- common/cpw/mods/fml/common/FMLCommonHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/cpw/mods/fml/common/FMLCommonHandler.java b/common/cpw/mods/fml/common/FMLCommonHandler.java index f0def1d3bf..57308754ad 100644 --- a/common/cpw/mods/fml/common/FMLCommonHandler.java +++ b/common/cpw/mods/fml/common/FMLCommonHandler.java @@ -280,6 +280,11 @@ public class FMLCommonHandler */ public Logger getMinecraftLogger() { + if (sidedDelegate == null) + { + throw new RuntimeException("sidedDelegate null when attempting to getMinecraftLogger, this is generally caused by you not installing FML properly, " + + "or installing some other mod that edits Minecraft.class on top of FML such as ModLoader, do not do this. Reinstall FML properly and try again."); + } return sidedDelegate.getMinecraftLogger(); }