Skip to content

Commit

Permalink
player/player.go: Fix being unable to collect XP (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
xNatsuri authored Sep 9, 2024
1 parent ae7c8ed commit bf99d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/player/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -2147,7 +2147,7 @@ func (p *Player) CollectExperience(value int) bool {
return false
}
last := p.lastXPPickup.Load()
if last == nil || time.Since(*last) < time.Millisecond*100 {
if last != nil && time.Since(*last) < time.Millisecond*100 {
return false
}
value = p.mendItems(value)
Expand Down

0 comments on commit bf99d0e

Please sign in to comment.