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
commit f18232eb6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);