diff --git a/src/engine/InterestManagement/RealmMap.java b/src/engine/InterestManagement/RealmMap.java index a1a037ec..9bb8de96 100644 --- a/src/engine/InterestManagement/RealmMap.java +++ b/src/engine/InterestManagement/RealmMap.java @@ -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); } diff --git a/src/engine/util/MapLoader.java b/src/engine/util/MapLoader.java index efbbbf46..0c13aa99 100644 --- a/src/engine/util/MapLoader.java +++ b/src/engine/util/MapLoader.java @@ -60,10 +60,9 @@ public enum MapLoader { realmsWritten++; }catch (Exception e){ - continue; + Logger.error("Error while processing realm map" + e); } - } } timeToLoad = System.currentTimeMillis() - timeToLoad;