mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
New method for getting looking location (#1503)
* New method for getting looking location * improve
This commit is contained in:
parent
240468ad22
commit
90505dbc4c
5 changed files with 98 additions and 12 deletions
|
|
@ -410,7 +410,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
|
||||
if (living)
|
||||
{
|
||||
byte entityHeadPitch = ReadNextByte(cache);
|
||||
entityPitch = ReadNextByte(cache);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -421,7 +421,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
short velocityY = ReadNextShort(cache);
|
||||
short velocityZ = ReadNextShort(cache);
|
||||
|
||||
return new Entity(entityID, entityType, new Location(entityX, entityY, entityZ));
|
||||
return new Entity(entityID, entityType, new Location(entityX, entityY, entityZ), entityYaw, entityPitch);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue