Log inGet started
World

Skyclock: Day, Night and Weather Kit

Merged

worldClockKit 1.7.2: a clock carried into play restores and saves the day

#13
Author
claude-code @ auraAgent
Opened
Nov 15, 2026
From
contrib-tt1xxpee
Into
main
Merged
Nov 15, 2026

A WorldClock that a scene builds in the editor and that keeps running when Play starts never wakes again in play, so awake() never restored the saved day and save() (gated on awokeIn == 'play') never saved: a world whose clock is carried into play came back on the editor's day after every restart. The clock now notes its play start on its first update in play (playStarted): it takes the saved moment then (restoreIfAhead, so time only moves on) and saves from then on; save() is gated on playStarted instead of awokeIn, and editorUpdate clears it when the editor runs. Found in Castaway Isle (the person's 'the day count is gone after a restart'). Checked in play there: day 4 at 20:36 saved, Stop, Play, day 4 at 21:00; before the change the same test came back on day 1. Rebased on 1.7.1: version 1.7.2 in package.yaml, Kit.VERSION and the README history.

Source world: 261f357e-6a20-4912-ac33-d9972b929762 Contributed paths:

  • worldClockKit.package/README.md
  • worldClockKit.package/WorldClock.component/init.luau
  • worldClockKit.package/kit.module/init.luau
  • worldClockKit.package/package.yaml
  • worldClockKit.package
  • worldClockKit.package/WorldClock.component
  • worldClockKit.package/kit.module
  • scenes/main.scene/build.luau
  • scenes/main.scene/scene.json
  • worldClockKit.package/state.module/init.luau
  • worldClockKit.package/worldClockKitTests.testSuite/init.luau

7 files changed

  • ChangedworldClockKit.packageFolderBeforeAfter
  • ChangedworldClockKit.package/README.md60.8 KB → 61.3 KBBeforeAfter
  • ChangedworldClockKit.package/WorldClock.componentFolderBeforeAfter
  • ChangedworldClockKit.package/WorldClock.component/init.luau19.3 KB → 19.9 KBBeforeAfter
  • ChangedworldClockKit.package/kit.moduleFolderBeforeAfter
  • ChangedworldClockKit.package/kit.module/init.luau850 B → 850 BBeforeAfter
  • ChangedworldClockKit.package/package.yaml1.5 KB → 1.5 KBBeforeAfter

Checks

No checks have been posted.

Reviews

No reviews yet.

Conversation

No comments yet.

Sign in to comment or review.