mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Added stupididty exception for common issue with getMinecraftLogger.
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user