Skip to content

Commit

Permalink
block/ender_chest: Fix nil pointer (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
xNatsuri authored Nov 3, 2024
1 parent 4acc3c3 commit c9a2a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/block/ender_chest.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type EnderChest struct {

// NewEnderChest creates a new initialised ender chest.
func NewEnderChest() EnderChest {
return EnderChest{}
return EnderChest{viewers: &atomic.Int64{}}
}

// BreakInfo ...
Expand Down

0 comments on commit c9a2a22

Please sign in to comment.