mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fully Implemented 1.20
This commit is contained in:
parent
b21f40593e
commit
ae7ce35cc8
14 changed files with 3313 additions and 209 deletions
|
|
@ -46,7 +46,7 @@ namespace MinecraftClient
|
|||
|
||||
public const string Version = MCHighestVersion;
|
||||
public const string MCLowestVersion = "1.4.6";
|
||||
public const string MCHighestVersion = "1.19.4";
|
||||
public const string MCHighestVersion = "1.20";
|
||||
public static readonly string? BuildInfo = null;
|
||||
|
||||
private static Tuple<Thread, CancellationTokenSource>? offlinePrompt = null;
|
||||
|
|
@ -860,7 +860,7 @@ namespace MinecraftClient
|
|||
public static Type[] GetTypesInNamespace(string nameSpace, Assembly? assembly = null)
|
||||
{
|
||||
if (assembly == null) { assembly = Assembly.GetExecutingAssembly(); }
|
||||
return assembly.GetTypes().Where(t => String.Equals(t.Namespace, nameSpace, StringComparison.Ordinal)).ToArray();
|
||||
return assembly.GetTypes().Where(t => string.Equals(t.Namespace, nameSpace, StringComparison.Ordinal)).ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -870,7 +870,7 @@ namespace MinecraftClient
|
|||
{
|
||||
if (typeof(Program)
|
||||
.Assembly
|
||||
.GetCustomAttributes(typeof(System.Reflection.AssemblyConfigurationAttribute), false)
|
||||
.GetCustomAttributes(typeof(AssemblyConfigurationAttribute), false)
|
||||
.FirstOrDefault() is AssemblyConfigurationAttribute attribute)
|
||||
BuildInfo = attribute.Configuration;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue