Browse Source

Using color instead of int value.

master
MagicBot 2 years ago
parent
commit
cd9b8536cb
  1. 4
      src/engine/InterestManagement/RealmMap.java
  2. 3
      src/engine/util/MapLoader.java

4
src/engine/InterestManagement/RealmMap.java

@ -41,9 +41,7 @@ public enum RealmMap { @@ -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);
}

3
src/engine/util/MapLoader.java

@ -60,10 +60,9 @@ public enum MapLoader { @@ -60,10 +60,9 @@ public enum MapLoader {
realmsWritten++;
}catch (Exception e){
continue;
Logger.error("Error while processing realm map" + e);
}
}
}
timeToLoad = System.currentTimeMillis() - timeToLoad;

Loading…
Cancel
Save