Added stupididty exception for common issue with getMinecraftLogger.

This commit is contained in:
LexManos committed 2012-06-21 03:17:33 -07:00
1 parent 2af41e7c8c
commit 44706ae343
1 file changed
+5
@@ -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();
}