mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Only print stacktrace when non-ZLIB exception
This commit is contained in:
parent
7cfcebf0f5
commit
47cab96d10
@ -41,6 +41,7 @@ import com.volmit.iris.util.parallel.MultiBurst;
|
|||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
|
|
||||||
|
import java.io.EOFException;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -537,7 +538,9 @@ public class Mantle {
|
|||||||
} catch(Throwable e) {
|
} catch(Throwable e) {
|
||||||
Iris.error("Failed to read Tectonic Plate " + file.getAbsolutePath() + " creating a new chunk instead.");
|
Iris.error("Failed to read Tectonic Plate " + file.getAbsolutePath() + " creating a new chunk instead.");
|
||||||
Iris.reportError(e);
|
Iris.reportError(e);
|
||||||
e.printStackTrace();
|
if (!(e instanceof EOFException)) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
Iris.panic();
|
Iris.panic();
|
||||||
region = new TectonicPlate(worldHeight, x, z);
|
region = new TectonicPlate(worldHeight, x, z);
|
||||||
loadedRegions.put(k, region);
|
loadedRegions.put(k, region);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user