Skip to content

Commit

Permalink
Changes to 1.19.3, 1.19.4 and 1.20 protocols to fix packet_entity_sou…
Browse files Browse the repository at this point in the history
…nd_effect and packet_sound_effect to include optional soundEvent argument (#731)
  • Loading branch information
TheRedXD committed Jul 9, 2023
1 parent f00c2cc commit 8ab8476
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 0 deletions.
56 changes: 56 additions & 0 deletions data/pc/1.19.3/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -4376,6 +4376,34 @@
"name": "soundId",
"type": "varint"
},
{
"name": "soundEvent",
"type": [
"switch",
{
"compareTo": "soundId",
"fields": {
"0": [
"container",
[
{
"name": "resource",
"type": "string"
},
{
"name": "range",
"type": [
"option",
"f32"
]
}
]
]
},
"default": "void"
}
]
},
{
"name": "soundCategory",
"type": "varint"
Expand Down Expand Up @@ -4442,6 +4470,34 @@
"name": "soundId",
"type": "varint"
},
{
"name": "soundEvent",
"type": [
"switch",
{
"compareTo": "soundId",
"fields": {
"0": [
"container",
[
{
"name": "resource",
"type": "string"
},
{
"name": "range",
"type": [
"option",
"f32"
]
}
]
]
},
"default": "void"
}
]
},
{
"name": "soundCategory",
"type": "varint"
Expand Down
56 changes: 56 additions & 0 deletions data/pc/1.19.4/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -4562,6 +4562,34 @@
"name": "soundId",
"type": "varint"
},
{
"name": "soundEvent",
"type": [
"switch",
{
"compareTo": "soundId",
"fields": {
"0": [
"container",
[
{
"name": "resource",
"type": "string"
},
{
"name": "range",
"type": [
"option",
"f32"
]
}
]
]
},
"default": "void"
}
]
},
{
"name": "soundCategory",
"type": "varint"
Expand Down Expand Up @@ -4628,6 +4656,34 @@
"name": "soundId",
"type": "varint"
},
{
"name": "soundEvent",
"type": [
"switch",
{
"compareTo": "soundId",
"fields": {
"0": [
"container",
[
{
"name": "resource",
"type": "string"
},
{
"name": "range",
"type": [
"option",
"f32"
]
}
]
]
},
"default": "void"
}
]
},
{
"name": "soundCategory",
"type": "varint"
Expand Down
56 changes: 56 additions & 0 deletions data/pc/1.20/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -4558,6 +4558,34 @@
"name": "soundId",
"type": "varint"
},
{
"name": "soundEvent",
"type": [
"switch",
{
"compareTo": "soundId",
"fields": {
"0": [
"container",
[
{
"name": "resource",
"type": "string"
},
{
"name": "range",
"type": [
"option",
"f32"
]
}
]
]
},
"default": "void"
}
]
},
{
"name": "soundCategory",
"type": "varint"
Expand Down Expand Up @@ -4624,6 +4652,34 @@
"name": "soundId",
"type": "varint"
},
{
"name": "soundEvent",
"type": [
"switch",
{
"compareTo": "soundId",
"fields": {
"0": [
"container",
[
{
"name": "resource",
"type": "string"
},
{
"name": "range",
"type": [
"option",
"f32"
]
}
]
]
},
"default": "void"
}
]
},
{
"name": "soundCategory",
"type": "varint"
Expand Down

0 comments on commit 8ab8476

Please sign in to comment.