mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
boink
This commit is contained in:
parent
6faddae16e
commit
88bca839f7
1 changed files with 6 additions and 2 deletions
|
|
@ -484,6 +484,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
|
|
||||||
private bool HandlePlayPackets(int packetId, Queue<byte> packetData)
|
private bool HandlePlayPackets(int packetId, Queue<byte> packetData)
|
||||||
{
|
{
|
||||||
|
try{
|
||||||
switch (packetPalette.GetIncommingTypeById(packetId))
|
switch (packetPalette.GetIncommingTypeById(packetId))
|
||||||
{
|
{
|
||||||
case PacketTypesIn.KeepAlive: // Keep Alive (Play)
|
case PacketTypesIn.KeepAlive: // Keep Alive (Play)
|
||||||
|
|
@ -797,7 +798,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
|
|
||||||
var chatInfo = Json.ParseJson(chatName).Properties;
|
var chatInfo = Json.ParseJson(chatName).Properties;
|
||||||
var senderDisplayName =
|
var senderDisplayName =
|
||||||
(chatInfo.ContainsKey("insertion") ? chatInfo["insertion"] : chatInfo["text"])
|
(chatInfo.ContainsKey("insertion") ? chatInfo["insertion"] : (chatInfo.ContainsKey("text") ? chatInfo["text"] : ""))
|
||||||
.StringValue;
|
.StringValue;
|
||||||
string? senderTeamName = null;
|
string? senderTeamName = null;
|
||||||
var messageTypeEnum =
|
var messageTypeEnum =
|
||||||
|
|
@ -909,7 +910,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
var chatInfo =
|
var chatInfo =
|
||||||
Json.ParseJson(targetName ?? chatName).Properties;
|
Json.ParseJson(targetName ?? chatName).Properties;
|
||||||
var senderDisplayName =
|
var senderDisplayName =
|
||||||
(chatInfo.ContainsKey("insertion") ? chatInfo["insertion"] : chatInfo["text"])
|
(chatInfo.ContainsKey("insertion") ? chatInfo["insertion"] : (chatInfo.ContainsKey("text") ? chatInfo["text"] : ""))
|
||||||
.StringValue;
|
.StringValue;
|
||||||
string? senderTeamName = null;
|
string? senderTeamName = null;
|
||||||
if (targetName != null &&
|
if (targetName != null &&
|
||||||
|
|
@ -2570,6 +2571,9 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
}
|
}
|
||||||
|
|
||||||
return true; //Packet processed
|
return true; //Packet processed
|
||||||
|
}catch(Exception exception){
|
||||||
|
exception.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue