Fix possible self-supression

This commit is contained in:
Lukas Rieger (Blue) 2024-02-23 23:55:17 +01:00
parent 9e8dc8e5a8
commit d1aba560da
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -237,7 +237,9 @@ private Chunk loadChunk(int x, int z) {
return getRegion(x >> 5, z >> 5) return getRegion(x >> 5, z >> 5)
.loadChunk(x, z); .loadChunk(x, z);
} catch (IOException | RuntimeException e) { } catch (IOException | RuntimeException e) {
if (loadException != null) e.addSuppressed(loadException); if (loadException != null && loadException != e)
e.addSuppressed(loadException);
loadException = e; loadException = e;
if (i + 1 < tries) { if (i + 1 < tries) {