diff --git a/common/cpw/mods/fml/common/ModContainerFactory.java b/common/cpw/mods/fml/common/ModContainerFactory.java index dcbb31b193..e0e8f5fd29 100644 --- a/common/cpw/mods/fml/common/ModContainerFactory.java +++ b/common/cpw/mods/fml/common/ModContainerFactory.java @@ -25,6 +25,14 @@ public class ModContainerFactory return new ModLoaderModContainer(className, modSource, modParser.getBaseModProperties()); } + // We warn if it's not a basemod instance -- compatibility requires it to be in net.minecraft.src *sigh* + if (className.startsWith("net.minecraft.src.")) + { + FMLLog.severe("FML has detected a mod that is using a package name based on 'net.minecraft.src' : %s. This is generally a severe programming error. " + + " There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into " + + "a new package. Go on. DO IT NOW!",className); + } + for (ModAnnotation ann : modParser.getAnnotations()) { if (ann.getASMType().equals(Type.getType(Mod.class)))