Fix replay not being closed when opened via URI scheme handler (fixes #92)
This commit is contained in:
@@ -124,6 +124,8 @@ public class ReplayHandler {
|
||||
|
||||
ReplayModReplay.instance.replayHandler = null;
|
||||
|
||||
mc.displayGuiScreen(null);
|
||||
|
||||
FMLCommonHandler.instance().bus().post(new ReplayCloseEvent.Post(this));
|
||||
}
|
||||
|
||||
|
||||
@@ -181,6 +181,9 @@ public class ReplayModReplay {
|
||||
}
|
||||
|
||||
public void startReplay(ReplayFile replayFile, boolean checkModCompat) throws IOException {
|
||||
if (replayHandler != null) {
|
||||
replayHandler.endReplay();
|
||||
}
|
||||
if (checkModCompat) {
|
||||
ModCompat.ModInfoDifference modDifference = new ModCompat.ModInfoDifference(replayFile.getModInfo());
|
||||
if (!modDifference.getMissing().isEmpty() || !modDifference.getDiffering().isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user