From 812e3b81ff84822cda6673862ba68e7534dc7220 Mon Sep 17 00:00:00 2001 From: TwistedAsylumMC Date: Sat, 21 Sep 2024 17:02:51 +0100 Subject: [PATCH] player/player.go: Fix heldSlot nil pointer --- server/player/player.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/player/player.go b/server/player/player.go index 8a5cdc236..3f630ee3c 100644 --- a/server/player/player.go +++ b/server/player/player.go @@ -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