mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-03 06:28:48 +00:00
Don't rewind when replay is at start tick
This commit is contained in:
1 parent
4e8ded512b
commit
b6d52db8fa
1 file changed
+2
@@ -394,6 +394,7 @@ public class ExportJob {
|
|||||||
private void setup(ReplayServer replayServer) {
|
private void setup(ReplayServer replayServer) {
|
||||||
Minecraft minecraft = Minecraft.getInstance();
|
Minecraft minecraft = Minecraft.getInstance();
|
||||||
|
|
||||||
|
if (replayServer.getReplayTick() != this.settings.startTick()) {
|
||||||
int currentTick = Math.max(0, this.settings.startTick() - 40);
|
int currentTick = Math.max(0, this.settings.startTick() - 40);
|
||||||
|
|
||||||
// Ensure replay server is paused at currentTick
|
// Ensure replay server is paused at currentTick
|
||||||
@@ -431,6 +432,7 @@ public class ExportJob {
|
|||||||
// Ensured replay server is paused at startTick
|
// Ensured replay server is paused at startTick
|
||||||
this.setServerTickAndWait(replayServer, this.settings.startTick(), true);
|
this.setServerTickAndWait(replayServer, this.settings.startTick(), true);
|
||||||
this.runClientTick(false);
|
this.runClientTick(false);
|
||||||
|
}
|
||||||
|
|
||||||
// Remove screen
|
// Remove screen
|
||||||
minecraft.setScreen(null);
|
minecraft.setScreen(null);
|
||||||
|
|||||||
Reference in new issue
Block a user