Log a big fat warning for the developer in the case the network version

is not acceptable to the mod itself. (This can happen because of a bad range
specifier for example)
This commit is contained in:
Christian 2012-08-31 23:41:29 -04:00
parent 8f70ed5f33
commit 6056c760d4
1 changed files with 11 additions and 0 deletions

View File

@ -91,6 +91,17 @@ public class NetworkModHandler
}
}
FMLLog.finest("Testing mod %s to very it can accept it's own version in a remote connection", container.getModId());
boolean acceptsSelf = acceptVersion(container.getVersion());
if (!acceptsSelf)
{
FMLLog.severe("The mod %s appears to reject it's own version number (%s) in it's version handling. This is likely a severe bug in the mod!", container.getModId(), container.getVersion());
}
else
{
FMLLog.finest("The mod %s accepts it's own version (%s)", container.getModId(), container.getVersion());
}
tryCreatingPacketHandler(container, mod.packetHandler(), mod.channels(), null);
if (FMLCommonHandler.instance().getSide().isClient())
{