Fix entity tracker loading error popup never being shown

This commit is contained in:
Jonas Herzig
2019-07-06 17:35:10 +02:00
parent d47c899ef8
commit 31d327efc7

View File

@@ -569,13 +569,14 @@ public class GuiPathing {
@Override
public void onFailure(@Nonnull Throwable t) {
if (errorShown) {
if (!errorShown) {
String message = "Failed to load entity tracker, spectator keyframes will be broken.";
GuiReplayOverlay overlay = replayHandler.getOverlay();
Utils.error(LOGGER, overlay, CrashReport.create(t, message), () -> {
popup.close();
thenRun.run();
});
errorShown = true;
} else {
thenRun.run();
}