mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Improve the "Mod rejections" error message when connecting to a server (#4761)
This commit is contained in:
1 parent
18144b7a0a
commit
bdb65e9ed7
5 files changed
+125
-29
No files matched your search
@@ -815,7 +815,8 @@ public class FMLClientHandler implements IFMLSidedHandler
|
||||
}
|
||||
|
||||
Map<String,String> modListMap = modListBldr.build();
|
||||
serverDataTag.put(data, new ExtendedServerListData(type, FMLNetworkHandler.checkModList(modListMap, Side.SERVER) == null, modListMap, !moddedClientAllowed));
|
||||
String modRejections = FMLNetworkHandler.checkModList(modListMap, Side.SERVER);
|
||||
serverDataTag.put(data, new ExtendedServerListData(type, modRejections == null, modListMap, !moddedClientAllowed));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -825,7 +826,7 @@ public class FMLClientHandler implements IFMLSidedHandler
|
||||
{
|
||||
moddedClientAllowed = !serverDescription.endsWith(":NOFML§r");
|
||||
}
|
||||
serverDataTag.put(data, new ExtendedServerListData("VANILLA", false, ImmutableMap.<String,String>of(), !moddedClientAllowed));
|
||||
serverDataTag.put(data, new ExtendedServerListData("VANILLA", false, ImmutableMap.of(), !moddedClientAllowed));
|
||||
}
|
||||
startupConnectionData.countDown();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user