Skip to content

Commit

Permalink
yep
Browse files Browse the repository at this point in the history
  • Loading branch information
Misfiy committed Sep 10, 2024
1 parent 709da32 commit 9a1e5c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions EXILED/Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ public ScpSpawnPreferences.SpawnPreferences ScpPreferences
public Vector3 Scale
{
get => ReferenceHub.transform.localScale;
set => SetSize(value, List);
set => SetScale(value, List);
}

/// <summary>
Expand Down Expand Up @@ -2059,7 +2059,7 @@ public void Disconnect(string reason = null) =>
/// </summary>
/// <param name="size">The size to set.</param>
/// <param name="viewers">Who should see the updated scale.</param>
public void SetSize(Vector3 size, IEnumerable<Player> viewers)
public void SetScale(Vector3 size, IEnumerable<Player> viewers)
{
if (size == Scale)
return;
Expand All @@ -2073,7 +2073,7 @@ public void SetSize(Vector3 size, IEnumerable<Player> viewers)
}
catch (Exception exception)
{
Log.Error($"{nameof(SetSize)} error: {exception}");
Log.Error($"{nameof(SetScale)} error: {exception}");
}
}

Expand All @@ -2082,7 +2082,7 @@ public void SetSize(Vector3 size, IEnumerable<Player> viewers)
/// </summary>
/// <param name="fakeSize">The scale to set to.</param>
/// <param name="viewers">Who should see the fake size.</param>
public void SetFakeSize(Vector3 fakeSize, IEnumerable<Player> viewers)
public void SetFakeScale(Vector3 fakeSize, IEnumerable<Player> viewers)
{
Vector3 currentScale = Scale;

Expand All @@ -2100,7 +2100,7 @@ public void SetFakeSize(Vector3 fakeSize, IEnumerable<Player> viewers)
}
catch (Exception ex)
{
Log.Error($"{nameof(SetFakeSize)}: {ex}");
Log.Error($"{nameof(SetFakeScale)}: {ex}");
}
}

Expand Down

0 comments on commit 9a1e5c6

Please sign in to comment.