Skip to content

Commit 4bb25c3

Browse files
committed
feat(DeclareCommands.cs): Add 1.20.3+ version check
1 parent 79910b5 commit 4bb25c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MinecraftClient/Protocol/Handlers/Packet/s2c/DeclareCommands.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static void Read(DataTypes dataTypes, Queue<byte> packetData, int protoco
9696
44 => new ParserResource(dataTypes, packetData),
9797
50 => protocolVersion == Protocol18Handler.MC_1_19_4_Version ?
9898
new ParserForgeEnum(dataTypes, packetData) :
99-
new ParserEmpty(dataTypes, packetData),
99+
new ParserEmpty(dataTypes, packetData),
100100
51 => (protocolVersion >= Protocol18Handler.MC_1_20_Version &&
101101
protocolVersion <= Protocol18Handler.MC_1_20_2_Version) ? // 1.20 - 1.20.2
102102
new ParserForgeEnum(dataTypes, packetData) :
@@ -124,6 +124,7 @@ public static void Read(DataTypes dataTypes, Queue<byte> packetData, int protoco
124124
43 => new ParserResourceOrTag(dataTypes, packetData),
125125
44 => new ParserResource(dataTypes, packetData),
126126
45 => new ParserResource(dataTypes, packetData),
127+
52 => new ParserForgeEnum(dataTypes, packetData),
127128
_ => new ParserEmpty(dataTypes, packetData),
128129
};
129130
}

0 commit comments

Comments
 (0)