Improve the "Mod rejections" error message when connecting to a server (#4761)

This commit is contained in:
mezz authored and LexManos committed 2018-02-26 22:05:08 -08:00
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();
}