@@ -3908,6 +3908,8 @@ export class SeveranceEnvironment extends BaseEnvironment {
3908
3908
console . log ( "[DEBUG FILM INTERIOR] interiorGroup name:" , interiorGroup . name ) ; // <<< ADDED
3909
3909
console . log ( `Creating FILM interior at ${ center . x } , ${ center . z } ` ) ;
3910
3910
3911
+ try {
3912
+
3911
3913
// --- Special lighting at door entrance, similar to Design interior ---
3912
3914
if ( doorPosition ) {
3913
3915
// Create vector from door to center
@@ -4481,6 +4483,15 @@ export class SeveranceEnvironment extends BaseEnvironment {
4481
4483
if ( ! this . _customWatchInteractables ) this . _customWatchInteractables = [ ] ;
4482
4484
this . _customWatchInteractables . push ( interact ) ;
4483
4485
}
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
+ }
4484
4495
}
4485
4496
4486
4497
/** Creates interior for Performance Art section. */
@@ -5093,7 +5104,7 @@ export class SeveranceEnvironment extends BaseEnvironment {
5093
5104
// <<< ADD LOG INSIDE CASE 'FILM' >>>
5094
5105
console . log ( "[CPSI DEBUG] Inside case 'FILM'. About to call _createFilmInterior." ) ;
5095
5106
console . log ( '[DEBUG] Calling _createFilmInterior' , { interiorGroup, center, size, doorPosition} ) ;
5096
- this . _createFilmInterior ( interiorGroup , center , size , doorPosition ) ;
5107
+ await this . _createFilmInterior ( interiorGroup , center , size , doorPosition ) ;
5097
5108
break ;
5098
5109
case 'ART' :
5099
5110
await this . _createArtInterior ( interiorGroup , center , size , doorPosition ) ;
0 commit comments