mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Fix waiting too long for server when jumping to tick
This commit is contained in:
1 parent
ad37435c2d
commit
a5f3ff2513
1 file changed
+6
@@ -96,6 +96,7 @@ import java.nio.file.attribute.BasicFileAttributes;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.concurrent.locks.LockSupport;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import java.util.function.Function;
|
||||
|
||||
@@ -764,6 +765,11 @@ public class ReplayServer extends IntegratedServer {
|
||||
return super.haveTime() && this.jumpToTick < 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void waitForTasks() {
|
||||
LockSupport.parkNanos("waiting for tasks", 100000L);
|
||||
}
|
||||
|
||||
public EditorState getEditorState() {
|
||||
if (Flashback.isExporting()) {
|
||||
return Flashback.EXPORT_JOB.getSettings().editorState();
|
||||
|
||||
Reference in new issue
Block a user