mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix crash on MC 1.7 update score (#1199)
This commit is contained in:
parent
3c30b34b91
commit
c3ace103c6
1 changed files with 3 additions and 3 deletions
|
|
@ -921,12 +921,12 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
case PacketIncomingType.UpdateScore:
|
||||
string entityname = dataTypes.ReadNextString(packetData);
|
||||
byte action3 = dataTypes.ReadNextByte(packetData);
|
||||
string objectivename2 = dataTypes.ReadNextString(packetData);
|
||||
string objectivename2 = null;
|
||||
int value = -1;
|
||||
if (action3 != 1 || protocolversion >= MC18Version)
|
||||
objectivename2 = dataTypes.ReadNextString(packetData);
|
||||
if (action3 != 1)
|
||||
{
|
||||
value = dataTypes.ReadNextVarInt(packetData);
|
||||
}
|
||||
handler.OnUpdateScore(entityname, action3, objectivename2, value);
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue