George 881f716115 Fix two live simulation bugs: profiler crash + regions never updating
forceUpdateRegion crashed with "no profiling cycle is active" because
runModulesForRegion calls profiler.beginModule() which requires an active
cycle. Wrapped the call in startCycle/endCycle in a try/finally.

Regions showed tick=0 and no module data because SimulationScheduler's
priority queue was never populated for normal rolling updates — only
explicit queueRegion() calls worked. Fixed by auto-enqueueing all active
regions in onMinecraftServerTick() just before each simulation cycle fires.
Auto-enqueueing is placed there (not in runSimulationCycle()) so unit tests
that drive cycles directly are unaffected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 16:42:11 +01:00
2026-06-07 12:18:45 +01:00
2026-06-07 12:18:45 +01:00
2026-06-07 12:18:45 +01:00
2026-06-07 12:18:45 +01:00
2026-06-07 12:18:45 +01:00
2026-06-07 12:18:45 +01:00
2026-06-07 12:22:59 +01:00
2026-06-07 12:18:45 +01:00
2026-06-07 12:18:45 +01:00
2026-06-07 12:18:45 +01:00
S
Description
No description provided
42 MiB
Languages
Java 75%
HTML 24%
JavaScript 0.6%
CSS 0.4%