Skip to content

Commit

Permalink
Always send the "cameras" experiment in ResourcePackStack (#190)
Browse files Browse the repository at this point in the history
This prevents crashing on server where they have the experiment enabled.
Fixes #188.
  • Loading branch information
JavierLeon9966 committed Jun 14, 2023
1 parent a4bc2f9 commit 36718af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ func (conn *Conn) handleResourcePackClientResponse(pk *packet.ResourcePackClient
return err
}
case packet.PackResponseAllPacksDownloaded:
pk := &packet.ResourcePackStack{BaseGameVersion: protocol.CurrentVersion}
pk := &packet.ResourcePackStack{BaseGameVersion: protocol.CurrentVersion, Experiments: []protocol.ExperimentData{{Name: "cameras", Enabled: true}}}
for _, pack := range conn.resourcePacks {
resourcePack := protocol.StackResourcePack{UUID: pack.UUID(), Version: pack.Version()}
// If it has behaviours, add it to the behaviour pack list. If not, we add it to the texture packs
Expand Down

0 comments on commit 36718af

Please sign in to comment.