Skip to content

Commit

Permalink
Remove invalid Color attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
RinLovesYou committed Jan 5, 2024
1 parent 09fadaf commit 9ca6af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions MelonLoader/Attributes/MelonAuthorColorAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ public ConsoleColor Color
public MelonAuthorColorAttribute()
=> DrawingColor = MelonLogger.DefaultTextColor;

public MelonAuthorColorAttribute(Color drawingColor)
=> DrawingColor = drawingColor;

[Obsolete("ConsoleColor is obsolete, use the (int, int, int, int) or (Color) constructor instead.")]
[Obsolete("ConsoleColor is obsolete, use the (int, int, int, int) constructor instead.")]
public MelonAuthorColorAttribute(ConsoleColor color)
=> Color = ((color == ConsoleColor.Black) ? LoggerUtils.DrawingColorToConsoleColor(MelonLogger.DefaultMelonColor) : color);

Expand Down
5 changes: 1 addition & 4 deletions MelonLoader/Attributes/MelonColorAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ public ConsoleColor Color
public MelonColorAttribute()
=> DrawingColor = MelonLogger.DefaultTextColor;

public MelonColorAttribute(Color drawingColor)
=> DrawingColor = drawingColor;

[Obsolete("ConsoleColor is obsolete, use the (int, int, int, int) or (Color) constructor instead.")]
[Obsolete("ConsoleColor is obsolete, use the (int, int, int, int) constructor instead.")]
public MelonColorAttribute(ConsoleColor color)
=> Color = ((color == ConsoleColor.Black) ? LoggerUtils.DrawingColorToConsoleColor(MelonLogger.DefaultMelonColor) : color);

Expand Down

0 comments on commit 9ca6af7

Please sign in to comment.