mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Bug fix: ResourcePackSend.hasPromptMessage
This commit is contained in:
parent
d10ad138f1
commit
dff3f23b03
3 changed files with 5 additions and 4 deletions
|
|
@ -28,7 +28,7 @@ namespace MinecraftClient.Crypto
|
||||||
{
|
{
|
||||||
BaseStream = stream;
|
BaseStream = stream;
|
||||||
|
|
||||||
if (FastAes.IsSupport())
|
if (FastAes.IsSupported())
|
||||||
FastAes = new FastAes(key);
|
FastAes = new FastAes(key);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace MinecraftClient.Crypto
|
||||||
/// Detects if the required instruction set is supported
|
/// Detects if the required instruction set is supported
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Is it supported</returns>
|
/// <returns>Is it supported</returns>
|
||||||
public static bool IsSupport()
|
public static bool IsSupported()
|
||||||
{
|
{
|
||||||
return Sse2.IsSupported && Aes.IsSupported;
|
return Sse2.IsSupported && Aes.IsSupported;
|
||||||
}
|
}
|
||||||
|
|
@ -1120,8 +1120,9 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
{
|
{
|
||||||
forced = dataTypes.ReadNextBool(packetData);
|
forced = dataTypes.ReadNextBool(packetData);
|
||||||
string forcedMessage = ChatParser.ParseText(dataTypes.ReadNextString(packetData));
|
string forcedMessage = ChatParser.ParseText(dataTypes.ReadNextString(packetData));
|
||||||
dataTypes.ReadNextBool(packetData); // Has Prompt Message (Boolean) - 1.17 and above
|
bool hasPromptMessage = dataTypes.ReadNextBool(packetData); // Has Prompt Message (Boolean) - 1.17 and above
|
||||||
dataTypes.ReadNextString(packetData); // Prompt Message (Optional Chat) - 1.17 and above
|
if (hasPromptMessage)
|
||||||
|
dataTypes.ReadNextString(packetData); // Prompt Message (Optional Chat) - 1.17 and above
|
||||||
}
|
}
|
||||||
// Some server plugins may send invalid resource packs to probe the client and we need to ignore them (issue #1056)
|
// Some server plugins may send invalid resource packs to probe the client and we need to ignore them (issue #1056)
|
||||||
if (!url.StartsWith("http") && hash.Length != 40) // Some server may have null hash value
|
if (!url.StartsWith("http") && hash.Length != 40) // Some server may have null hash value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue