Replay is now definitely exited once a Player returns to the Main screen

This commit is contained in:
CrushedPixel
2015-05-24 13:49:51 +02:00
parent 27f2b50aee
commit 9e12c0329d
2 changed files with 6 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package eu.crushedpixel.replaymod.events;
import de.johni0702.replaystudio.replay.Replay;
import eu.crushedpixel.replaymod.ReplayMod;
import eu.crushedpixel.replaymod.gui.GuiConstants;
import eu.crushedpixel.replaymod.gui.GuiReplaySaving;
@@ -64,6 +65,7 @@ public class GuiEventHandler {
e.printStackTrace();
}
}
if(ReplayHandler.isInReplay()) ReplayHandler.setInReplay(false);
}
if(!AuthenticationHandler.isAuthenticated()) return;

View File

@@ -427,6 +427,10 @@ public class ReplayHandler {
inReplay = false;
}
public static void setInReplay(boolean inReplay1) {
inReplay = inReplay1;
}
public static Keyframe getSelectedKeyframe() {
return selectedKeyframe;
}