Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
CJMustard1452 committed Jul 24, 2024
1 parent fd50a86 commit 8ea6926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/player/hunger.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (m *hungerManager) Food() int {
func (m *hungerManager) SetFood(level int) {
m.mu.Lock()
defer m.mu.Unlock()

if level < 0 {
level = 0
} else if level > 20 {
Expand Down Expand Up @@ -60,7 +60,7 @@ func (m *hungerManager) AddFood(points int) {
func (m *hungerManager) Reset() {
m.mu.Lock()
defer m.mu.Unlock()

m.foodLevel = 20
m.saturationLevel = 5
m.exhaustionLevel = 0
Expand Down Expand Up @@ -159,4 +159,4 @@ type StarvationDamageSource struct{}

func (StarvationDamageSource) ReducedByArmour() bool { return false }
func (StarvationDamageSource) ReducedByResistance() bool { return false }
func (StarvationDamageSource) Fire() bool { return false }
func (StarvationDamageSource) Fire() bool { return false }

0 comments on commit 8ea6926

Please sign in to comment.