mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Allow force-enabling Forge support for 1.13+ (#1184)
Skip login step and join even when forge info is missing in server info. However, this only works for 1.13+. Server info retrieval is required for enabling Forge support on older Minecraft versions.
This commit is contained in:
parent
9df255dd29
commit
d3f150ba12
7 changed files with 101 additions and 7 deletions
|
|
@ -33,6 +33,24 @@ namespace MinecraftClient.Protocol.Handlers.Forge
|
|||
public List<ForgeMod> Mods;
|
||||
internal FMLVersion Version;
|
||||
|
||||
/// <summary>
|
||||
/// Create a new ForgeInfo with the given version.
|
||||
/// </summary>
|
||||
/// <param name="fmlVersion">FML version to use</param>
|
||||
internal ForgeInfo(FMLVersion fmlVersion)
|
||||
{
|
||||
switch (fmlVersion)
|
||||
{
|
||||
case FMLVersion.FML2:
|
||||
this.Mods = new List<ForgeMod>();
|
||||
this.Mods.Add(new ForgeMod("forge", "ANY"));
|
||||
this.Version = fmlVersion;
|
||||
break;
|
||||
default:
|
||||
throw new InvalidOperationException(Translations.Get("error.forgeforce"));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a new ForgeInfo from the given data.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue