mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fix criteria version boundary: criteria list removed from wire format in MC 1.20.2, not 1.20.6
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/5da0ec37-35e2-4aae-b165-66ddd82df985 Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
This commit is contained in:
parent
5705df43bd
commit
0f3289dfdf
1 changed files with 2 additions and 2 deletions
|
|
@ -3202,9 +3202,9 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
// Criteria and requirements differ by version
|
||||
var requirements = new List<List<string>>();
|
||||
|
||||
if (protocolVersion < MC_1_20_6_Version)
|
||||
if (protocolVersion < MC_1_20_2_Version)
|
||||
{
|
||||
// Builder-based (pre-1.20.6): criteria names list, then requirements
|
||||
// Builder-based (pre-1.20.2): criteria names list, then requirements
|
||||
int criteriaCount = dataTypes.ReadNextVarInt(packetData);
|
||||
for (int c = 0; c < criteriaCount; c++)
|
||||
dataTypes.ReadNextString(packetData); // criterion name only, no trigger data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue