Using color instead of int value.
This commit is contained in:
1 parent
3a2695703b
commit
cd9b8536cb
2 files changed
+2
-5
No files matched your search
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user