mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 08:27:03 +01:00
Merge remote-tracking branch 'upstream/mc1.16/dev' into mc1.17/dev
This commit is contained in:
commit
b6e35773f0
1 changed files with 4 additions and 1 deletions
|
@ -68,7 +68,10 @@ public class ServerSpeedProvider {
|
||||||
}
|
}
|
||||||
float target = ((float) getSyncInterval()) / Math.max(clientTimer, 1);
|
float target = ((float) getSyncInterval()) / Math.max(clientTimer, 1);
|
||||||
modifier.target(Math.min(target, 1));
|
modifier.target(Math.min(target, 1));
|
||||||
clientTimer = 0;
|
// Set this to -1 because packets are processed before ticks.
|
||||||
|
// ServerSpeedProvider#clientTick will increment it to 0 at the end of this tick.
|
||||||
|
// Setting it to 0 causes consistent desync, as the client ends up counting too many ticks.
|
||||||
|
clientTimer = -1;
|
||||||
|
|
||||||
});
|
});
|
||||||
context.get()
|
context.get()
|
||||||
|
|
Loading…
Reference in a new issue