mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix /move
This commit is contained in:
parent
531f3408a0
commit
223c13561c
6 changed files with 62 additions and 45 deletions
|
|
@ -141,7 +141,7 @@ namespace MinecraftClient.Mapping
|
|||
/// <param name="location">Entity location</param>
|
||||
/// <param name="uuid">Player uuid</param>
|
||||
/// <param name="name">Player name</param>
|
||||
public Entity(int ID, EntityType type, Location location, Guid uuid, string? name)
|
||||
public Entity(int ID, EntityType type, Location location, Guid uuid, string? name, byte yaw, byte pitch)
|
||||
{
|
||||
this.ID = ID;
|
||||
this.Type = type;
|
||||
|
|
@ -151,6 +151,8 @@ namespace MinecraftClient.Mapping
|
|||
this.Health = 1.0f;
|
||||
this.Equipment = new Dictionary<int, Item>();
|
||||
this.Item = new Item(ItemType.Air, 0, null);
|
||||
this.Yaw = yaw * (1 / 256) * 360; // to angle in 360 degree
|
||||
this.Pitch = pitch * (1 / 256) * 360;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue