Skip to content

Commit

Permalink
player/player.go: Fix heldSlot nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Sep 21, 2024
1 parent adc474b commit 812e3b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/player/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func New(name string, skin skin.Skin, pos mgl64.Vec3) *Player {
breathing: true,
cooldowns: make(map[string]time.Time),
mc: &entity.MovementComputer{Gravity: 0.08, Drag: 0.02, DragBeforeGravity: true},
heldSlot: &atomic.Uint32{},
}
var scoreTag string
var heldSlot uint32
Expand Down

0 comments on commit 812e3b8

Please sign in to comment.