Fix camera path always playing from the beginning regardless of ctrl key
This commit is contained in:
@@ -24,6 +24,7 @@ public abstract class AbstractTimelinePlayer {
|
||||
private final Minecraft mc = Minecraft.getMinecraft();
|
||||
private final ReplayHandler replayHandler;
|
||||
private Timeline timeline;
|
||||
protected long startOffset;
|
||||
private long lastTime;
|
||||
private long lastTimestamp;
|
||||
private ListenableFuture<Void> future;
|
||||
@@ -33,6 +34,11 @@ public abstract class AbstractTimelinePlayer {
|
||||
this.replayHandler = replayHandler;
|
||||
}
|
||||
|
||||
public ListenableFuture<Void> start(Timeline timeline, long from) {
|
||||
startOffset = from;
|
||||
return start(timeline);
|
||||
}
|
||||
|
||||
public ListenableFuture<Void> start(Timeline timeline) {
|
||||
this.timeline = timeline;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user