Skip to content

Commit 71f38e6

Browse files
Copilotextremeheat
andauthored
Fix malformed YAML syntax for _enum_type in Bedrock protocol definitions (#1103)
* Initial plan * Fix malformed enum_size_based_on_values_len type value in Bedrock protocol files Co-authored-by: extremeheat <13713600+extremeheat@users.noreply.github.com> * Correct fix: Remove quotes around YAML array for _enum_type field Co-authored-by: extremeheat <13713600+extremeheat@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: extremeheat <13713600+extremeheat@users.noreply.github.com>
1 parent f833774 commit 71f38e6

File tree

43 files changed

+43
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+43
-43
lines changed

data/bedrock/1.16.201/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ packet_available_commands:
13151315
# If the values_len < 0xff => byte
13161316
# If the values_len < 0xffff => short
13171317
# If the values_len < 0xffffff => int
1318-
_enum_type: '["enum_size_based_on_values_len"]'
1318+
_enum_type: ["enum_size_based_on_values_len"]
13191319
# Here all the enum values for all of the possible commands are stored to one array palette
13201320
enum_values: string[]$values_len
13211321
# Integer parameters may sometimes have a prefix, such as the XP command:

data/bedrock/1.16.210/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ packet_available_commands:
13541354
# If the values_len < 0xff => byte
13551355
# If the values_len < 0xffff => short
13561356
# If the values_len < 0xffffff => int
1357-
_enum_type: '["enum_size_based_on_values_len"]'
1357+
_enum_type: ["enum_size_based_on_values_len"]
13581358
# Here all the enum values for all of the possible commands are stored to one array palette
13591359
enum_values: string[]$values_len
13601360
# Integer parameters may sometimes have a prefix, such as the XP command:

data/bedrock/1.16.220/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ packet_available_commands:
14871487
# If the values_len < 0xff => byte,
14881488
# If the values_len < 0xffff => short,
14891489
# If the values_len < 0xffffff => int
1490-
_enum_type: '["enum_size_based_on_values_len"]'
1490+
_enum_type: ["enum_size_based_on_values_len"]
14911491
# Here all the enum values for all of the possible commands are stored to one array palette
14921492
enum_values: string[]$values_len
14931493
# Integer parameters may sometimes have a prefix, such as the XP command:

data/bedrock/1.17.0/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ packet_available_commands:
14891489
# If the values_len < 0xff => byte,
14901490
# If the values_len < 0xffff => short,
14911491
# If the values_len < 0xffffff => int
1492-
_enum_type: '["enum_size_based_on_values_len"]'
1492+
_enum_type: ["enum_size_based_on_values_len"]
14931493
# Here all the enum values for all of the possible commands are stored to one array palette
14941494
enum_values: string[]$values_len
14951495
# Integer parameters may sometimes have a prefix, such as the XP command:

data/bedrock/1.17.10/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ packet_available_commands:
15721572
# If the values_len < 0xff => byte,
15731573
# If the values_len < 0xffff => short,
15741574
# If the values_len < 0xffffff => int
1575-
_enum_type: '["enum_size_based_on_values_len"]'
1575+
_enum_type: ["enum_size_based_on_values_len"]
15761576
# Here all the enum values for all of the possible commands are stored to one array palette
15771577
enum_values: string[]$values_len
15781578
# Integer parameters may sometimes have a prefix, such as the XP command:

data/bedrock/1.17.30/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ packet_available_commands:
15841584
# If the values_len < 0xff => byte,
15851585
# If the values_len < 0xffff => short,
15861586
# If the values_len < 0xffffff => int
1587-
_enum_type: '["enum_size_based_on_values_len"]'
1587+
_enum_type: ["enum_size_based_on_values_len"]
15881588
# Here all the enum values for all of the possible commands are stored to one array palette
15891589
enum_values: string[]$values_len
15901590
# Integer parameters may sometimes have a prefix, such as the XP command:

data/bedrock/1.17.40/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ packet_available_commands:
15741574
# If the values_len < 0xff => byte,
15751575
# If the values_len < 0xffff => short,
15761576
# If the values_len < 0xffffff => int
1577-
_enum_type: '["enum_size_based_on_values_len"]'
1577+
_enum_type: ["enum_size_based_on_values_len"]
15781578
# Here all the enum values for all of the possible commands are stored to one array palette
15791579
enum_values: string[]$values_len
15801580
# Integer parameters may sometimes have a prefix, such as the XP command:

data/bedrock/1.18.0/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ packet_available_commands:
15901590
# If the values_len < 0xff => byte,
15911591
# If the values_len < 0xffff => short,
15921592
# If the values_len < 0xffffff => int
1593-
_enum_type: '["enum_size_based_on_values_len"]'
1593+
_enum_type: ["enum_size_based_on_values_len"]
15941594
# Here all the enum values for all of the possible commands are stored to one array palette
15951595
enum_values: string[]$values_len
15961596
# Integer parameters may sometimes have a prefix, such as the XP command:

data/bedrock/1.18.11/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ packet_available_commands:
15971597
# If the values_len < 0xff => byte,
15981598
# If the values_len < 0xffff => short,
15991599
# If the values_len < 0xffffff => int
1600-
_enum_type: '["enum_size_based_on_values_len"]'
1600+
_enum_type: ["enum_size_based_on_values_len"]
16011601
# Here all the enum values for all of the possible commands are stored to one array palette
16021602
enum_values: string[]$values_len
16031603
# Integer parameters may sometimes have a prefix, such as the XP command:

data/bedrock/1.18.30/proto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ packet_available_commands:
16051605
# If the values_len < 0xff => byte,
16061606
# If the values_len < 0xffff => short,
16071607
# If the values_len < 0xffffff => int
1608-
_enum_type: '["enum_size_based_on_values_len"]'
1608+
_enum_type: ["enum_size_based_on_values_len"]
16091609
# Here all the enum values for all of the possible commands are stored to one array palette
16101610
enum_values: string[]$values_len
16111611
# Integer parameters may sometimes have a prefix, such as the XP command:

0 commit comments

Comments
 (0)