Skip to content

Commit

Permalink
Fix possible self-supression
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Feb 23, 2024
1 parent 9e8dc8e commit d1aba56
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d1aba56

Please sign in to comment.