mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix tps not updated
This commit is contained in:
parent
5d0172a1f9
commit
9dbb70eb63
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ namespace MinecraftClient.ChatBots
|
|||
{
|
||||
if (attackSpeed != prop["generic.attackSpeed"])
|
||||
{
|
||||
GetServerTPS();
|
||||
serverTPS = GetServerTPS();
|
||||
attackSpeed = prop["generic.attackSpeed"];
|
||||
attackCooldownSecond = 1 / attackSpeed * (serverTPS / 20.0); // server tps will affect the cooldown
|
||||
attackCooldown = Convert.ToInt32(Math.Truncate(attackCooldownSecond / 0.1) + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue