mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Reorganize methods in McClient.cs
Tyding up the class as it is becoming quite large
This commit is contained in:
parent
2add4030f4
commit
f30dc4464c
5 changed files with 880 additions and 866 deletions
|
|
@ -15,14 +15,14 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
if (sneaking)
|
||||
{
|
||||
var result = handler.sendEntityAction(Protocol.EntityActionType.StopSneaking);
|
||||
var result = handler.SendEntityAction(Protocol.EntityActionType.StopSneaking);
|
||||
if (result)
|
||||
sneaking = false;
|
||||
return result ? "You aren't sneaking anymore" : "Fail";
|
||||
}
|
||||
else
|
||||
{
|
||||
var result = handler.sendEntityAction(Protocol.EntityActionType.StartSneaking);
|
||||
var result = handler.SendEntityAction(Protocol.EntityActionType.StartSneaking);
|
||||
if (result)
|
||||
sneaking = true;
|
||||
return result ? "You are sneaking now" : "Fail";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue