mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fixed entity yaw and pitch
Fixed number value type during calculation of entity yaw & pitch
This commit is contained in:
parent
1d0066f1d8
commit
1a47eddb8f
1 changed files with 4 additions and 4 deletions
|
|
@ -128,8 +128,8 @@ namespace MinecraftClient.Mapping
|
|||
Health = 1.0f;
|
||||
Equipment = new Dictionary<int, Item>();
|
||||
Item = new Item(ItemType.Air, 0, null);
|
||||
Yaw = yaw * (1 / 256) * 360; // to angle in 360 degree
|
||||
Pitch = pitch * (1 / 256) * 360;
|
||||
Yaw = yaw * (1F / 256) * 360; // to angle in 360 degree
|
||||
Pitch = pitch * (1F / 256) * 360;
|
||||
ObjectData = objectData;
|
||||
}
|
||||
|
||||
|
|
@ -151,8 +151,8 @@ namespace MinecraftClient.Mapping
|
|||
Health = 1.0f;
|
||||
Equipment = new Dictionary<int, Item>();
|
||||
Item = new Item(ItemType.Air, 0, null);
|
||||
Yaw = yaw * (1 / 256) * 360; // to angle in 360 degree
|
||||
Pitch = pitch * (1 / 256) * 360;
|
||||
Yaw = yaw * (1F / 256) * 360; // to angle in 360 degree
|
||||
Pitch = pitch * (1F / 256) * 360;
|
||||
}
|
||||
|
||||
public string GetTypeString()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue