Update blend export to 1.12.2

This commit is contained in:
Jonas Herzig
2018-03-03 18:40:52 +01:00
parent 6794b58524
commit 1bdf7da525
16 changed files with 407 additions and 102 deletions

View File

@@ -22,6 +22,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import static com.replaymod.core.versions.MCVer.*;
import static com.replaymod.render.ReplayModRender.LOGGER;
// Note:
@@ -77,7 +78,7 @@ public class BlendState implements Exporter {
} catch (IOException e) {
CrashReport report = CrashReport.makeCrashReport(e, "Setup of blend exporter");
CrashReportCategory category = report.makeCategory("Exporter");
category.addCrashSectionCallable("Exporter", exporter::toString);
addDetail(category, "Exporter", exporter::toString);
throw new ReportedException(report);
}
}
@@ -91,7 +92,7 @@ public class BlendState implements Exporter {
} catch (IOException e) {
CrashReport report = CrashReport.makeCrashReport(e, "Tear down of blend exporter");
CrashReportCategory category = report.makeCategory("Exporter");
category.addCrashSectionCallable("Exporter", exporter::toString);
addDetail(category, "Exporter", exporter::toString);
throw new ReportedException(report);
}
}
@@ -128,7 +129,7 @@ public class BlendState implements Exporter {
} catch (IOException e) {
CrashReport report = CrashReport.makeCrashReport(e, "Pre frame of blend exporter");
CrashReportCategory category = report.makeCategory("Exporter");
category.addCrashSectionCallable("Exporter", exporter::toString);
addDetail(category, "Exporter", exporter::toString);
category.addCrashSection("Frame", frame);
throw new ReportedException(report);
}
@@ -143,7 +144,7 @@ public class BlendState implements Exporter {
} catch (IOException e) {
CrashReport report = CrashReport.makeCrashReport(e, "Post frame of blend exporter");
CrashReportCategory category = report.makeCategory("Exporter");
category.addCrashSectionCallable("Exporter", exporter::toString);
addDetail(category, "Exporter", exporter::toString);
category.addCrashSection("Frame", frame);
throw new ReportedException(report);
}