mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Run MCC at true 20 TPS
This commit is contained in:
parent
5f7e302213
commit
484133f07a
30 changed files with 1091 additions and 147 deletions
|
|
@ -38,6 +38,8 @@ namespace MinecraftClient
|
|||
public const string TranslationsFile_Website_Download = "https://resources.download.minecraft.net";
|
||||
|
||||
public const string TranslationProjectUrl = "https://crwd.in/minecraft-console-client";
|
||||
public const int ClientTicksPerSecond = 20;
|
||||
public const int ClientTickIntervalMilliseconds = 1000 / ClientTicksPerSecond;
|
||||
|
||||
public static GlobalConfig Config = new();
|
||||
|
||||
|
|
@ -1928,8 +1930,8 @@ namespace MinecraftClient
|
|||
|
||||
public static int DoubleToTick(double time)
|
||||
{
|
||||
time = Math.Min(int.MaxValue / 10, time);
|
||||
return (int)Math.Round(time * 10);
|
||||
time = Math.Min(int.MaxValue / (double)ClientTicksPerSecond, time);
|
||||
return (int)Math.Round(time * ClientTicksPerSecond);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue