mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Restore to previous movement speed
This commit is contained in:
parent
53898f3446
commit
b97b226166
3 changed files with 7 additions and 5 deletions
|
|
@ -61,7 +61,6 @@ namespace MinecraftClient
|
|||
private float playerPitch;
|
||||
private double motionY;
|
||||
public enum MovementType { Sneak, Walk, Sprint }
|
||||
public int currentMovementSpeed = 4;
|
||||
private int sequenceId; // User for player block synchronization (Aka. digging, placing blocks, etc..)
|
||||
|
||||
private readonly string host;
|
||||
|
|
@ -337,7 +336,7 @@ namespace MinecraftClient
|
|||
{
|
||||
lock (locationLock)
|
||||
{
|
||||
for (int i = 0; i < currentMovementSpeed; i++) //Needs to run at 20 tps; MCC runs at 10 tps
|
||||
for (int i = 0; i < Settings.MovementSpeed; i++) //Needs to run at 20 tps; MCC runs at 10 tps
|
||||
{
|
||||
if (_yaw == null || _pitch == null)
|
||||
{
|
||||
|
|
@ -2485,15 +2484,15 @@ namespace MinecraftClient
|
|||
{
|
||||
case MovementType.Sneak:
|
||||
// https://minecraft.fandom.com/wiki/Sneaking#Effects - Sneaking 1.31m/s
|
||||
currentMovementSpeed = 2;
|
||||
Settings.MovementSpeed = 2;
|
||||
break;
|
||||
case MovementType.Walk:
|
||||
// https://minecraft.fandom.com/wiki/Walking#Usage - Walking 4.317 m/s
|
||||
currentMovementSpeed = 4;
|
||||
Settings.MovementSpeed = 4;
|
||||
break;
|
||||
case MovementType.Sprint:
|
||||
// https://minecraft.fandom.com/wiki/Sprinting#Usage - Sprinting 5.612 m/s
|
||||
currentMovementSpeed = 5;
|
||||
Settings.MovementSpeed = 5;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ minecraftrealms=false # Enable support for joining Minecraft Realms
|
|||
moveheadwhilewalking=true # Enable head movement while walking to avoid anti-cheat triggers
|
||||
timeout=30 # Set a custom timeout in seconds (Default: 30). Use only if you know what you're doing.
|
||||
enableemoji=true # If turned off, the emoji will be replaced with a simpler character (for /chunk status)
|
||||
movementspeed=2 # A movement speed higher than 2 may be considered cheating.
|
||||
|
||||
[Signature]
|
||||
# Chat settings (affects minecraft 1.19+)
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ namespace MinecraftClient
|
|||
public static bool MoveHeadWhileWalking = true;
|
||||
public static int Timeout = 30;
|
||||
public static bool EnableEmoji = true;
|
||||
public static int MovementSpeed = 2;
|
||||
|
||||
// Signature
|
||||
public static bool LoginWithSecureProfile = true;
|
||||
|
|
@ -426,6 +427,7 @@ namespace MinecraftClient
|
|||
case "moveheadwhilewalking": MoveHeadWhileWalking = str2bool(argValue); return true;
|
||||
case "timeout": Timeout = str2int(argValue); return true;
|
||||
case "enableemoji": EnableEmoji = str2bool(argValue); return true;
|
||||
case "movementspwwd": MovementSpeed = str2int(argValue); return true;
|
||||
|
||||
case "botowners":
|
||||
Bots_Owners.Clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue