diff --git a/EXILED/Exiled.API/Features/Room.cs b/EXILED/Exiled.API/Features/Room.cs index 846a76509..45a86e758 100644 --- a/EXILED/Exiled.API/Features/Room.cs +++ b/EXILED/Exiled.API/Features/Room.cs @@ -429,16 +429,16 @@ internal void InternalCreate() Identifier = gameObject.GetComponent(); RoomIdentifierToRoom.Add(Identifier, this); - Zone = Identifier.Zone.GetZone(); - - if (Zone is ZoneType.Unspecified) - Log.Warn($"[ZONETYPE UNKNOWN] {Identifier} Zone : {Identifier?.Zone}"); - Type = FindType(gameObject); if (Type is RoomType.Unknown) Log.Warn($"[ROOMTYPE UNKNOWN] {Identifier} Name : {gameObject?.name.RemoveBracketsOnEndOfName()} Shape : {Identifier?.Shape}"); + Zone = Type is RoomType.Pocket ? ZoneType.Pocket : Identifier.Zone.GetZone(); + + if (Zone is ZoneType.Unspecified) + Log.Warn($"[ZONETYPE UNKNOWN] {Identifier} Zone : {Identifier?.Zone}"); + RoomLightControllers = RoomLightControllersValue.AsReadOnly(); GetComponentsInChildren().ForEach(component =>