Replay is now definitely exited once a Player returns to the Main screen
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -427,6 +427,10 @@ public class ReplayHandler {
|
||||
inReplay = false;
|
||||
}
|
||||
|
||||
public static void setInReplay(boolean inReplay1) {
|
||||
inReplay = inReplay1;
|
||||
}
|
||||
|
||||
public static Keyframe getSelectedKeyframe() {
|
||||
return selectedKeyframe;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user