Skip to content

Commit

Permalink
Shut
Browse files Browse the repository at this point in the history
  • Loading branch information
SrLicht committed Aug 24, 2024
1 parent db60910 commit d50425b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions EXILED/Exiled.API/Features/Spawn/RoomSpawnPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ public override Vector3 Position
{
Room roomInstance = Features.Room.Get(Room) ?? throw new InvalidOperationException("The room instance could not be found.");

return Offset.HasValue
? (roomInstance.Type == RoomType.Surface ? Offset.Value : roomInstance.transform.TransformPoint(Offset.Value))
: roomInstance.Position;
return Offset.HasValue ? roomInstance.transform.TransformPoint(Offset.Value) : roomInstance.Position;
}
set => throw new InvalidOperationException("The position of this type of SpawnPoint cannot be changed.");
}
Expand Down

0 comments on commit d50425b

Please sign in to comment.