Browse Source

Try block no longer needed.

master
MagicBot 2 years ago
parent
commit
b3ba8f5c9f
  1. 9
      src/engine/util/MapLoader.java

9
src/engine/util/MapLoader.java

@ -49,8 +49,8 @@ public enum MapLoader { @@ -49,8 +49,8 @@ public enum MapLoader {
for (int i = 0; i < MBServerStatics.SPATIAL_HASH_BUCKETSY; i++) {
for (int j = 0; j < MBServerStatics.SPATIAL_HASH_BUCKETSX; j++) {
try {
Color pixelColor = new Color(image.getRGB(j, i));
Color pixelColor = new Color(image.getRGB(j, i));
realmUUID = RealmMap.getRealmIDByColor(pixelColor);
realmMap[j][i] = realmUUID;
@ -59,12 +59,9 @@ public enum MapLoader { @@ -59,12 +59,9 @@ public enum MapLoader {
if (realmUUID != 0)
realmsWritten++;
}catch (Exception e){
Logger.error("Error while processing realm map" + e);
}
}
}
timeToLoad = System.currentTimeMillis() - timeToLoad;
Logger.info( bytesRead + "Realm imageMNap pixels processed in " + timeToLoad / 1000 + " seconds");

Loading…
Cancel
Save