Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

Commit

Permalink
Ansi
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Feb 26, 2024
1 parent a996b17 commit f481632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Exiled.Events/Patches/Generic/ConsoleColorPatched.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private static string ClosestAnsiColor(Color32 color, bool isBackgroundColor = f
int closestColor = 37; // Default to reset
double closestDistance = double.MaxValue;

// Calculate distance from given color to each Bukkit API color
// Calculate distance from given color to each Ansi color
foreach (KeyValuePair<Color32, int> AnsiColor in AnsiColors)
{
double distance = Math.Pow(color.r - AnsiColor.Key.r, 2) +
Expand Down

0 comments on commit f481632

Please sign in to comment.