mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 16:49:58 +01:00
Merge pull request #471 from Glitchfinder/master
Making errors during the chunk converion process silent.
This commit is contained in:
commit
67b63f84f1
@ -330,17 +330,17 @@ public class HashChunkletManager implements ChunkletManager {
|
|||||||
catch (IOException ex) {
|
catch (IOException ex) {
|
||||||
if (ex instanceof EOFException) {
|
if (ex instanceof EOFException) {
|
||||||
// EOF should only happen on Chunklets that somehow have been corrupted.
|
// EOF should only happen on Chunklets that somehow have been corrupted.
|
||||||
mcMMO.p.getLogger().severe("Chunklet data at " + location.toString() + " could not be read due to an EOFException, data in this area will be lost.");
|
//mcMMO.p.getLogger().severe("Chunklet data at " + location.toString() + " could not be read due to an EOFException, data in this area will be lost.");
|
||||||
return ChunkletStoreFactory.getChunkletStore();
|
return ChunkletStoreFactory.getChunkletStore();
|
||||||
}
|
}
|
||||||
else if (ex instanceof StreamCorruptedException) {
|
else if (ex instanceof StreamCorruptedException) {
|
||||||
// StreamCorrupted happens when the Chunklet is no good.
|
// StreamCorrupted happens when the Chunklet is no good.
|
||||||
mcMMO.p.getLogger().severe("Chunklet data at " + location.toString() + " is corrupted, data in this area will be lost.");
|
//mcMMO.p.getLogger().severe("Chunklet data at " + location.toString() + " is corrupted, data in this area will be lost.");
|
||||||
return ChunkletStoreFactory.getChunkletStore();
|
return ChunkletStoreFactory.getChunkletStore();
|
||||||
}
|
}
|
||||||
else if (ex instanceof UTFDataFormatException) {
|
else if (ex instanceof UTFDataFormatException) {
|
||||||
// UTF happens when the Chunklet cannot be read or is corrupted
|
// UTF happens when the Chunklet cannot be read or is corrupted
|
||||||
mcMMO.p.getLogger().severe("Chunklet data at " + location.toString() + " could not be read due to an UTFDataFormatException, data in this area will be lost.");
|
//mcMMO.p.getLogger().severe("Chunklet data at " + location.toString() + " could not be read due to an UTFDataFormatException, data in this area will be lost.");
|
||||||
return ChunkletStoreFactory.getChunkletStore();
|
return ChunkletStoreFactory.getChunkletStore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user