mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 10:34:49 +00:00
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:
1 parent
8656fd50ce
commit
359cfb5c98
1 file changed
+11
@@ -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);
|
tryCreatingPacketHandler(container, mod.packetHandler(), mod.channels(), null);
|
||||||
if (FMLCommonHandler.instance().getSide().isClient())
|
if (FMLCommonHandler.instance().getSide().isClient())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user