Skip to content

Commit 80cae44

Browse files
finreinhardclaude
andcommitted
Set world time to 0 when creating challenge
Ensures players start with a fresh morning when a new challenge is created. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 7108d12 commit 80cae44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/li/angu/challengeplugin/managers/ChallengeManager.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ class ChallengeManager(private val plugin: ChallengePluginPlugin) {
306306

307307
// Apply challenge settings to the world
308308
if (world != null) {
309+
// Set world time to 0 for fresh start
310+
world.time = 0
311+
309312
challenge.applySettingsToWorld(world)
310313

311314
// Also apply settings to nether and end worlds

0 commit comments

Comments
 (0)