forked from MagicBane/Server
Try block no longer needed.
This commit is contained in:
@@ -49,8 +49,8 @@ public enum MapLoader {
|
|||||||
|
|
||||||
for (int i = 0; i < MBServerStatics.SPATIAL_HASH_BUCKETSY; i++) {
|
for (int i = 0; i < MBServerStatics.SPATIAL_HASH_BUCKETSY; i++) {
|
||||||
for (int j = 0; j < MBServerStatics.SPATIAL_HASH_BUCKETSX; j++) {
|
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);
|
realmUUID = RealmMap.getRealmIDByColor(pixelColor);
|
||||||
|
|
||||||
realmMap[j][i] = realmUUID;
|
realmMap[j][i] = realmUUID;
|
||||||
@@ -59,12 +59,9 @@ public enum MapLoader {
|
|||||||
if (realmUUID != 0)
|
if (realmUUID != 0)
|
||||||
realmsWritten++;
|
realmsWritten++;
|
||||||
|
|
||||||
}catch (Exception e){
|
|
||||||
Logger.error("Error while processing realm map" + e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
timeToLoad = System.currentTimeMillis() - timeToLoad;
|
timeToLoad = System.currentTimeMillis() - timeToLoad;
|
||||||
|
|
||||||
Logger.info( bytesRead + "Realm imageMNap pixels processed in " + timeToLoad / 1000 + " seconds");
|
Logger.info( bytesRead + "Realm imageMNap pixels processed in " + timeToLoad / 1000 + " seconds");
|
||||||
|
|||||||
Reference in New Issue
Block a user