Catch Exception when using converted maps with 128 blocks height

This commit is contained in:
DerFlash 2012-11-05 18:01:40 +01:00 committed by Wizjany
parent 4320e1a201
commit c2154b0f86

View File

@ -162,8 +162,12 @@ public class SnapshotRestore {
// Now just copy blocks! // Now just copy blocks!
for (Vector pos : entry.getValue()) { for (Vector pos : entry.getValue()) {
BaseBlock block = chunk.getBlock(pos); try {
editSession.rawSetBlock(pos, block); BaseBlock block = chunk.getBlock(pos);
editSession.rawSetBlock(pos, block);
} catch (DataException e) {
// this is a workaround: just ignore for now
}
} }
} catch (MissingChunkException me) { } catch (MissingChunkException me) {
missingChunks.add(chunkPos); missingChunks.add(chunkPos);