Fix entity tracker loading error popup never being shown
This commit is contained in:
@@ -569,13 +569,14 @@ public class GuiPathing {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(@Nonnull Throwable t) {
|
public void onFailure(@Nonnull Throwable t) {
|
||||||
if (errorShown) {
|
if (!errorShown) {
|
||||||
String message = "Failed to load entity tracker, spectator keyframes will be broken.";
|
String message = "Failed to load entity tracker, spectator keyframes will be broken.";
|
||||||
GuiReplayOverlay overlay = replayHandler.getOverlay();
|
GuiReplayOverlay overlay = replayHandler.getOverlay();
|
||||||
Utils.error(LOGGER, overlay, CrashReport.create(t, message), () -> {
|
Utils.error(LOGGER, overlay, CrashReport.create(t, message), () -> {
|
||||||
popup.close();
|
popup.close();
|
||||||
thenRun.run();
|
thenRun.run();
|
||||||
});
|
});
|
||||||
|
errorShown = true;
|
||||||
} else {
|
} else {
|
||||||
thenRun.run();
|
thenRun.run();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user