mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 06:24:43 +00:00
Stop IllegalFormatConversionException thrown if @Mod has flagged client-only or server-only
%d is not a valid format for getModId(), which returns String.
This commit is contained in:
1 parent
9d1f554075
commit
5071e76881
1 file changed
+2
-2
@@ -632,13 +632,13 @@ public class FMLModContainer implements ModContainer
|
||||
|
||||
if (clientSideOnly && side != Side.CLIENT)
|
||||
{
|
||||
FMLLog.info("Disabling mod %d it is client side only.", getModId());
|
||||
FMLLog.info("Disabling mod %s it is client side only.", getModId());
|
||||
return false;
|
||||
}
|
||||
|
||||
if (serverSideOnly && side != Side.SERVER)
|
||||
{
|
||||
FMLLog.info("Disabling mod %d it is server side only.", getModId());
|
||||
FMLLog.info("Disabling mod %s it is server side only.", getModId());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user