Fix stack overflow after entity tracker popup has been shown
Failure to load the entity tracker usually (not always) results in `entityTracker` remaining to be `null`, so there has to be an additional condition for aborting the thenRun-loadEntityTracker-…-recursion.
This commit is contained in:
@@ -553,7 +553,7 @@ public class GuiPathing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean loadEntityTracker(Runnable thenRun) {
|
public boolean loadEntityTracker(Runnable thenRun) {
|
||||||
if (entityTracker == null) {
|
if (entityTracker == null && !errorShown) {
|
||||||
LOGGER.debug("Entity tracker not yet loaded, delaying...");
|
LOGGER.debug("Entity tracker not yet loaded, delaying...");
|
||||||
LoadEntityTrackerPopup popup = new LoadEntityTrackerPopup(replayHandler.getOverlay());
|
LoadEntityTrackerPopup popup = new LoadEntityTrackerPopup(replayHandler.getOverlay());
|
||||||
entityTrackerLoadingProgress = p -> popup.progressBar.setProgress(p.floatValue());
|
entityTrackerLoadingProgress = p -> popup.progressBar.setProgress(p.floatValue());
|
||||||
|
|||||||
Reference in New Issue
Block a user