Files
novafarma/src/systems
David Kotnik 0bec0eb07a 🔧 Jan 8 Fix MasterWeatherSystem Null Reference Error
 BUG FIX #3 - Runtime Error:

**Problem:**
- MasterWeatherSystem.js:460 - rainEmitter.setSpeedX is not a function
- No null check before accessing particle emitter methods
- Crashed when entering GameScene (New Game)

**Root Cause:**
- Particle emitters not initialized yet when update() called
- Missing method existence check

**Solution:**
- Added null checks: this.rainEmitter && this.snowEmitter
- Added method existence check: typeof setSpeedX === 'function'
- Prevents crash if emitters not ready

**Changes:**
- Line 458: Added null + method check for rainEmitter
- Line 463: Added null + method check for snowEmitter

 Game now loads past menu into GameScene
 Ready for TestVisualAudioScene test

**Test:** game.scene.start('TestVisualAudioScene')
2026-01-08 16:15:56 +01:00
..
2026-01-08 01:53:09 +01:00
2026-01-08 01:53:09 +01:00
2026-01-07 22:30:10 +01:00