Skip to content

Commit ef91cdd

Browse files
finreinhardclaude
andcommitted
Fix initial saturation for new challenge joins
Set player saturation to 6f instead of inheriting lobby's 20f when first joining a challenge. Reconnecting players still get their saved saturation from database. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 2641458 commit ef91cdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/li/angu/challengeplugin/models/Challenge.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ class Challenge(
162162
player.gameMode = GameMode.SURVIVAL
163163
player.health = 20.0
164164
player.foodLevel = 20
165+
player.saturation = 6f
165166
player.exp = 0f
166167
player.level = 0
167168
player.inventory.clear()

0 commit comments

Comments
 (0)