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

Merge branch 'master' into saplingOverrides

This commit is contained in:
CocoTheOwner
2021-07-25 15:28:54 +02:00
129 changed files with 2266 additions and 885 deletions

View File

@@ -560,7 +560,25 @@ public class Iris extends VolmitPlugin implements Listener {
}
public boolean isMCA() {
return IrisSettings.get().getGenerator().isMcaPregenerator();
return !IrisSettings.get().getGenerator().isDisableMCA();
}
public static void reportErrorChunk(int x, int z, Throwable e, String extra) {
if (IrisSettings.get().getGeneral().isDebug()) {
File f = instance.getDataFile("debug", "chunk-errors", "chunk."+ x + "." + z + ".txt");
if (!f.exists()) {
J.attempt(() -> {
PrintWriter pw = new PrintWriter(f);
pw.println("Thread: " + Thread.currentThread().getName());
pw.println("First: " + new Date(M.ms()));
e.printStackTrace(pw);
pw.close();
});
}
Iris.debug("Chunk " + x + "," + z + " Exception Logged: " + e.getClass().getSimpleName() + ": " + C.RESET + "" + C.LIGHT_PURPLE + e.getMessage());
}
}
public static synchronized void reportError(Throwable e) {