Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions EXILED/Exiled.API/Features/Room.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,16 +429,16 @@ internal void InternalCreate()
Identifier = gameObject.GetComponent<RoomIdentifier>();
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<BreakableWindow>().ForEach(component =>
Expand Down
Loading