Unify the test mod ID

This commit is contained in:
Jaffe2718
2025-08-14 18:41:43 +08:00
parent a940a96bc7
commit 0d2c952a54
5 changed files with 12 additions and 25 deletions

View File

@@ -1,14 +0,0 @@
package eu.midnightdust.lib.util;
import java.awt.Color;
public class MidnightColorUtil {
/**
* @param colorStr e.g. "FFFFFF" or "#FFFFFF"
* @return Color as RGB
*/
public static Color hex2Rgb(String colorStr) {
try { return Color.decode("#" + colorStr.replace("#", ""));
} catch (Exception ignored) { return Color.BLACK; }
}
}