Skip to content

Commit ae064a0

Browse files
committed
Fix sub command serialization
1 parent ce21882 commit ae064a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v898/serializer/AvailableCommandsSerializer_v898.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected void writeCommand(ByteBuf buffer, BedrockCodecHelper helper, CommandDa
3838
helper.writeArray(buffer, commandData.getSubcommands(), (buf, subcommand) -> {
3939
int index = subCommands.indexOf(subcommand);
4040
checkArgument(index > -1, "Invalid subcommand index: " + subcommand);
41-
buf.writeShortLE(index);
41+
buf.writeIntLE(index);
4242
});
4343

4444
CommandOverloadData[] overloads = commandData.getOverloads();

0 commit comments

Comments
 (0)