Using color instead of int value.

This commit is contained in:
2023-05-15 06:03:13 -04:00
parent 3a2695703b
commit cd9b8536cb
2 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -41,9 +41,7 @@ public enum RealmMap {
public static int getRealmIDByColor(Color color) {
int realmID = _rgbToIDMap.get(color);
return realmID;
return _rgbToIDMap.getOrDefault(color, 0);
}