Catch Exception when using converted maps with 128 blocks height

Dieser Commit ist enthalten in:
DerFlash 2012-11-05 18:01:40 +01:00 committet von Wizjany
Ursprung 4320e1a201
Commit c2154b0f86

Datei anzeigen

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