From 262c68a81da4a0f9e0bf6443a27fbde9e7231b93 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. --- fml/common/cpw/mods/fml/common/FMLCommonHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fml/common/cpw/mods/fml/common/FMLCommonHandler.java b/fml/common/cpw/mods/fml/common/FMLCommonHandler.java index f0def1d3bf..57308754ad 100644 --- a/fml/common/cpw/mods/fml/common/FMLCommonHandler.java +++ b/fml/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(); }