mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 10:35:16 +01:00
Fix possible self-supression
This commit is contained in:
parent
9e8dc8e5a8
commit
d1aba560da
@ -237,7 +237,9 @@ private Chunk loadChunk(int x, int z) {
|
||||
return getRegion(x >> 5, z >> 5)
|
||||
.loadChunk(x, z);
|
||||
} catch (IOException | RuntimeException e) {
|
||||
if (loadException != null) e.addSuppressed(loadException);
|
||||
if (loadException != null && loadException != e)
|
||||
e.addSuppressed(loadException);
|
||||
|
||||
loadException = e;
|
||||
|
||||
if (i + 1 < tries) {
|
||||
|
Loading…
Reference in New Issue
Block a user