File tree Expand file tree Collapse file tree
EXILED/Exiled.API/Features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -429,16 +429,16 @@ internal void InternalCreate()
429429 Identifier = gameObject . GetComponent < RoomIdentifier > ( ) ;
430430 RoomIdentifierToRoom . Add ( Identifier , this ) ;
431431
432- Zone = Identifier . Zone . GetZone ( ) ;
433-
434- if ( Zone is ZoneType . Unspecified )
435- Log . Warn ( $ "[ZONETYPE UNKNOWN] { Identifier } Zone : { Identifier ? . Zone } ") ;
436-
437432 Type = FindType ( gameObject ) ;
438433
439434 if ( Type is RoomType . Unknown )
440435 Log . Warn ( $ "[ROOMTYPE UNKNOWN] { Identifier } Name : { gameObject ? . name . RemoveBracketsOnEndOfName ( ) } Shape : { Identifier ? . Shape } ") ;
441436
437+ Zone = Type is RoomType . Pocket ? ZoneType . Pocket : Identifier . Zone . GetZone ( ) ;
438+
439+ if ( Zone is ZoneType . Unspecified )
440+ Log . Warn ( $ "[ZONETYPE UNKNOWN] { Identifier } Zone : { Identifier ? . Zone } ") ;
441+
442442 RoomLightControllers = RoomLightControllersValue . AsReadOnly ( ) ;
443443
444444 GetComponentsInChildren < BreakableWindow > ( ) . ForEach ( component =>
You can’t perform that action at this time.
0 commit comments