mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Add submodule MinecraftProtocolLibrary
This commit is contained in:
parent
87026e1bfb
commit
3f1de66af3
62 changed files with 1093 additions and 450 deletions
|
|
@ -42,7 +42,7 @@ namespace MinecraftClient.Commands
|
|||
McClient handler = CmdResult.currentHandler!;
|
||||
if (sneaking)
|
||||
{
|
||||
var result = handler.SendEntityAction(Protocol.EntityActionType.StopSneaking).Result;
|
||||
var result = handler.SendEntityActionAsync(Protocol.EntityActionType.StopSneaking).Result;
|
||||
if (result)
|
||||
sneaking = false;
|
||||
if (result)
|
||||
|
|
@ -52,7 +52,7 @@ namespace MinecraftClient.Commands
|
|||
}
|
||||
else
|
||||
{
|
||||
var result = handler.SendEntityAction(Protocol.EntityActionType.StartSneaking).Result;
|
||||
var result = handler.SendEntityActionAsync(Protocol.EntityActionType.StartSneaking).Result;
|
||||
if (result)
|
||||
sneaking = true;
|
||||
if (result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue