mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Merge Unseak and sneak into one function
This commit is contained in:
parent
c5a19f4b8b
commit
add1dd2dcd
1 changed files with 2 additions and 9 deletions
|
|
@ -672,16 +672,9 @@ namespace MinecraftClient
|
|||
/// <summary>
|
||||
/// start Sneaking
|
||||
/// </summary>
|
||||
protected bool Sneak()
|
||||
protected bool Sneak(bool on)
|
||||
{
|
||||
return SendAction(Protocol.ActionType.StartSneaking);
|
||||
}
|
||||
/// <summary>
|
||||
/// Sends UnSneak
|
||||
/// </summary>
|
||||
protected bool UnSneak()
|
||||
{
|
||||
return SendAction(Protocol.ActionType.StopSneaking);
|
||||
return SendAction(on ? Protocol.ActionType.StartSneaking : Protocol.ActionType.StopSneaking);
|
||||
}
|
||||
/// <summary>
|
||||
/// Send Entity Action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue