@@ -3908,6 +3908,8 @@ export class SeveranceEnvironment extends BaseEnvironment {
39083908 console . log ( "[DEBUG FILM INTERIOR] interiorGroup name:" , interiorGroup . name ) ; // <<< ADDED
39093909 console . log ( `Creating FILM interior at ${ center . x } , ${ center . z } ` ) ;
39103910
3911+ try {
3912+
39113913 // --- Special lighting at door entrance, similar to Design interior ---
39123914 if ( doorPosition ) {
39133915 // Create vector from door to center
@@ -4481,6 +4483,15 @@ export class SeveranceEnvironment extends BaseEnvironment {
44814483 if ( ! this . _customWatchInteractables ) this . _customWatchInteractables = [ ] ;
44824484 this . _customWatchInteractables . push ( interact ) ;
44834485 }
4486+
4487+ } catch ( error ) {
4488+ console . error ( "[DEBUG FILM INTERIOR] Error creating film interior:" , error ) ;
4489+ console . error ( "[DEBUG FILM INTERIOR] Stack trace:" , error . stack ) ;
4490+ // Add basic fallback interior
4491+ const fallbackLight = new THREE . PointLight ( 0xffffff , 1.0 , 10 , 2 ) ;
4492+ fallbackLight . position . set ( center . x , center . y + 2 , center . z ) ;
4493+ interiorGroup . add ( fallbackLight ) ;
4494+ }
44844495 }
44854496
44864497 /** Creates interior for Performance Art section. */
@@ -5093,7 +5104,7 @@ export class SeveranceEnvironment extends BaseEnvironment {
50935104 // <<< ADD LOG INSIDE CASE 'FILM' >>>
50945105 console . log ( "[CPSI DEBUG] Inside case 'FILM'. About to call _createFilmInterior." ) ;
50955106 console . log ( '[DEBUG] Calling _createFilmInterior' , { interiorGroup, center, size, doorPosition} ) ;
5096- this . _createFilmInterior ( interiorGroup , center , size , doorPosition ) ;
5107+ await this . _createFilmInterior ( interiorGroup , center , size , doorPosition ) ;
50975108 break ;
50985109 case 'ART' :
50995110 await this . _createArtInterior ( interiorGroup , center , size , doorPosition ) ;
0 commit comments