mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Rename Action to EntityActionType, Apply Rename refactoring.
This commit is contained in:
parent
222a552c88
commit
0cd7f2043b
5 changed files with 9 additions and 9 deletions
|
|
@ -16,13 +16,13 @@ namespace MinecraftClient.Commands
|
|||
Console.WriteLine(command);
|
||||
if (sneaking)
|
||||
{
|
||||
var result = handler.sendEntityAction(Protocol.ActionType.StopSneaking);
|
||||
var result = handler.sendEntityAction(Protocol.EntityActionType.StopSneaking);
|
||||
sneaking = false;
|
||||
return result ? "Success" : "Fail";
|
||||
}
|
||||
else
|
||||
{
|
||||
var result = handler.sendEntityAction(Protocol.ActionType.StartSneaking);
|
||||
var result = handler.sendEntityAction(Protocol.EntityActionType.StartSneaking);
|
||||
sneaking = true;
|
||||
return result ? "Success" : "Fail";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue