aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Main.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Main.hx')
-rw-r--r--src/client/Main.hx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx
index 73f733c..b714b38 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -412,7 +412,12 @@ class Main {
case Play:
player.setPauseIndicator(true);
if (isLeader()) return;
- player.setTime(data.play.time);
+ final synchThreshold = settings.synchThreshold;
+ final newTime = data.play.time;
+ final time = player.getTime();
+ if (Math.abs(time - newTime) >= synchThreshold) {
+ player.setTime(newTime);
+ }
player.play();
case GetTime:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage