Enhance some error logging related to OBJLoader issues, and RegistryEntries.

This commit is contained in:
LexManos committed 2016-04-06 01:44:08 -07:00
1 parent a48fd56fdc
commit fb0bdd1276
2 files changed
+8 -2

No files matched your search

@@ -60,7 +60,7 @@ public interface IForgeRegistryEntry<V>
String prefix = mc == null || (mc instanceof InjectedModContainer && ((InjectedModContainer)mc).wrappedContainer instanceof FMLContainer) ? "minecraft" : mc.getModId().toLowerCase();
if (!oldPrefix.equals(prefix) && oldPrefix.length() > 0)
{
FMLLog.bigWarning("Dangerous alternative prefix %s for name %s, invalid registry invocation/invalid name?", oldPrefix, name);
FMLLog.bigWarning("Dangerous alternative prefix `%s` for name `%s`, expected `%s` invalid registry invocation/invalid name?", oldPrefix, name, prefix);
prefix = oldPrefix;
}
this.registryName = new ResourceLocation(prefix, name);