9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-25 10:09:14 +00:00

Merge pull request #716 from CocoTheOwner/SuppressZLIBError

Only print stacktrace when non-ZLIB exception
This commit is contained in:
Brian Fopiano
2022-02-09 13:52:58 -08:00
committed by GitHub

View File

@@ -41,6 +41,7 @@ import com.volmit.iris.util.parallel.MultiBurst;
import lombok.Getter;
import org.bukkit.Chunk;
import java.io.EOFException;
import java.io.File;
import java.io.IOException;
import java.util.Map;
@@ -537,7 +538,9 @@ public class Mantle {
} catch(Throwable e) {
Iris.error("Failed to read Tectonic Plate " + file.getAbsolutePath() + " creating a new chunk instead.");
Iris.reportError(e);
e.printStackTrace();
if (!(e instanceof EOFException)) {
e.printStackTrace();
}
Iris.panic();
region = new TectonicPlate(worldHeight, x, z);
loadedRegions.put(k, region);