Fixed mismatch registry names and mod ids
This commit is contained in:
parent
8058c675ab
commit
8374a80283
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ public interface IForgeRegistryEntry<V>
|
||||||
String oldPrefix = index == -1 ? "" : name.substring(0, index);
|
String oldPrefix = index == -1 ? "" : name.substring(0, index);
|
||||||
name = index == -1 ? name : name.substring(index + 1);
|
name = index == -1 ? name : name.substring(index + 1);
|
||||||
ModContainer mc = Loader.instance().activeModContainer();
|
ModContainer mc = Loader.instance().activeModContainer();
|
||||||
String prefix = mc == null || (mc instanceof InjectedModContainer && ((InjectedModContainer)mc).wrappedContainer instanceof FMLContainer) ? "minecraft" : mc.getModId();
|
String prefix = mc == null || (mc instanceof InjectedModContainer && ((InjectedModContainer)mc).wrappedContainer instanceof FMLContainer) ? "minecraft" : mc.getModId().toLowerCase();
|
||||||
if (!oldPrefix.equals(prefix) && oldPrefix.length() > 0)
|
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, invalid registry invocation/invalid name?", oldPrefix, name);
|
||||||
|
|
Loading…
Reference in a new issue