Rename Action to EntityActionType, Apply Rename refactoring.

This commit is contained in:
CarbonNeuron 2020-05-03 11:21:34 -05:00
parent 222a552c88
commit 0cd7f2043b
5 changed files with 9 additions and 9 deletions

View file

@ -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";
}