Using color instead of int value.
This commit is contained in:
@@ -41,9 +41,7 @@ public enum RealmMap {
|
|||||||
|
|
||||||
public static int getRealmIDByColor(Color color) {
|
public static int getRealmIDByColor(Color color) {
|
||||||
|
|
||||||
int realmID = _rgbToIDMap.get(color);
|
return _rgbToIDMap.getOrDefault(color, 0);
|
||||||
|
|
||||||
return realmID;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,10 +60,9 @@ public enum MapLoader {
|
|||||||
realmsWritten++;
|
realmsWritten++;
|
||||||
|
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
continue;
|
Logger.error("Error while processing realm map" + e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
timeToLoad = System.currentTimeMillis() - timeToLoad;
|
timeToLoad = System.currentTimeMillis() - timeToLoad;
|
||||||
|
|||||||
Reference in New Issue
Block a user