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 {
public static int getRealmIDByColor(Color color) { public static int getRealmIDByColor(Color color) {
int realmID = _rgbToIDMap.get(color); return _rgbToIDMap.getOrDefault(color, 0);
return realmID;
} }

3
src/engine/util/MapLoader.java

@ -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;

Loading…
Cancel
Save