mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 22:16:01 +00:00
Use cloned EditorState when exporting
This commit is contained in:
1 parent
6579039ba8
commit
149b14e7d8
2 files changed
+6
-7
No files matched your search
@@ -582,6 +582,9 @@ public class ReplayServer extends IntegratedServer {
|
||||
}
|
||||
|
||||
public EditorState getEditorState() {
|
||||
if (Flashback.isExporting()) {
|
||||
return Flashback.EXPORT_JOB.getSettings().editorState();
|
||||
}
|
||||
return EditorStateManager.get(this.metadata.replayIdentifier);
|
||||
}
|
||||
|
||||
@@ -691,8 +694,7 @@ public class ReplayServer extends IntegratedServer {
|
||||
boolean forceApplyKeyframes = this.forceApplyKeyframes.compareAndSet(true, false) && Flashback.EXPORT_JOB == null;
|
||||
if (!this.replayPaused || forceApplyKeyframes) {
|
||||
this.desiredTickRate = 20.0f;
|
||||
EditorState editorState = EditorStateManager.get(this.metadata.replayIdentifier);
|
||||
editorState.applyKeyframes(new ReplayServerKeyframeHandler(this), this.targetTick);
|
||||
this.getEditorState().applyKeyframes(new ReplayServerKeyframeHandler(this), this.targetTick);
|
||||
|
||||
if (forceApplyKeyframes) {
|
||||
((MinecraftExt)Minecraft.getInstance()).flashback$applyKeyframes();
|
||||
|
||||
Reference in new issue
Block a user