Skip to content

Commit

Permalink
packet/pool.go: Added LevelSoundEvent to allowed client packets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Sep 5, 2023
1 parent d0e79fe commit 1e588d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion minecraft/protocol/packet/client_cheat_ability.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

// ClientCheatAbility functions the same as UpdateAbilities. It is unclear why these two are separated.
// Deprecated: ClientCheatAbility is deprecated as of 1.20.10.
// ClientCheatAbility is deprecated as of 1.20.10.
type ClientCheatAbility struct {
// AbilityData represents various data about the abilities of a player, such as ability layers or permissions.
AbilityData protocol.AbilityData
Expand Down
1 change: 1 addition & 0 deletions minecraft/protocol/packet/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ func init() {
IDSetLocalPlayerAsInitialised: func() Packet { return &SetLocalPlayerAsInitialised{} },
IDNetworkStackLatency: func() Packet { return &NetworkStackLatency{} },
IDScriptCustomEvent: func() Packet { return &ScriptCustomEvent{} },
IDLevelSoundEvent: func() Packet { return &LevelSoundEvent{} },
IDLecternUpdate: func() Packet { return &LecternUpdate{} },
IDClientCacheStatus: func() Packet { return &ClientCacheStatus{} },
IDMapCreateLockedCopy: func() Packet { return &MapCreateLockedCopy{} },
Expand Down
2 changes: 1 addition & 1 deletion minecraft/protocol/packet/script_custom_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

// ScriptCustomEvent is sent by both the client and the server. It is a way to let scripts communicate with
// the server, so that the client can let the server know it triggered an event, or the other way around.
// Deprecated: ScriptCustomEvent is deprecated as of 1.20.10.
// ScriptCustomEvent is deprecated as of 1.20.10.
type ScriptCustomEvent struct {
// EventName is the name of the event. The script and the server will use this event name to identify the
// data that is sent.
Expand Down

0 comments on commit 1e588d8

Please sign in to comment.