From 5033173b66ec542d1afb110f37332d996c37fa32 Mon Sep 17 00:00:00 2001 From: "Nick J. Connors" Date: Sun, 13 Feb 2022 21:11:43 -0500 Subject: [PATCH] Fix MColor cast to Color32 --- NewHorizons/Utility/MColor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Utility/MColor.cs b/NewHorizons/Utility/MColor.cs index 228ac25a..e18e6b66 100644 --- a/NewHorizons/Utility/MColor.cs +++ b/NewHorizons/Utility/MColor.cs @@ -17,7 +17,7 @@ namespace NewHorizons.Utility public int B { get; } public int A { get; } - public Color32 ToColor32() => new Color(R, G, B, A); + public Color32 ToColor32() => new Color32((byte)R, (byte)G, (byte)B, (byte)A); public Color ToColor() => new Color(R / 255f, G / 255f, B / 255f, A / 255f); }