Skip to content

Commit

Permalink
feat(DeclareCommands.cs): Add 1.20.3+ version check
Browse files Browse the repository at this point in the history
  • Loading branch information
oldkingOK committed Mar 10, 2024
1 parent 79910b5 commit 4bb25c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static void Read(DataTypes dataTypes, Queue<byte> packetData, int protoco
44 => new ParserResource(dataTypes, packetData),
50 => protocolVersion == Protocol18Handler.MC_1_19_4_Version ?
new ParserForgeEnum(dataTypes, packetData) :
new ParserEmpty(dataTypes, packetData),
new ParserEmpty(dataTypes, packetData),
51 => (protocolVersion >= Protocol18Handler.MC_1_20_Version &&
protocolVersion <= Protocol18Handler.MC_1_20_2_Version) ? // 1.20 - 1.20.2
new ParserForgeEnum(dataTypes, packetData) :
Expand Down Expand Up @@ -124,6 +124,7 @@ public static void Read(DataTypes dataTypes, Queue<byte> packetData, int protoco
43 => new ParserResourceOrTag(dataTypes, packetData),
44 => new ParserResource(dataTypes, packetData),
45 => new ParserResource(dataTypes, packetData),
52 => new ParserForgeEnum(dataTypes, packetData),
_ => new ParserEmpty(dataTypes, packetData),
};
}
Expand Down

0 comments on commit 4bb25c3

Please sign in to comment.