mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
[SKIP_BUILD]Fixed entity yaw and pitch
Merge pull request #2378 from DevBobcorn/master
This commit is contained in:
commit
5677c4187c
1 changed files with 4 additions and 4 deletions
|
|
@ -128,8 +128,8 @@ namespace MinecraftClient.Mapping
|
||||||
Health = 1.0f;
|
Health = 1.0f;
|
||||||
Equipment = new Dictionary<int, Item>();
|
Equipment = new Dictionary<int, Item>();
|
||||||
Item = new Item(ItemType.Air, 0, null);
|
Item = new Item(ItemType.Air, 0, null);
|
||||||
Yaw = yaw * (1 / 256) * 360; // to angle in 360 degree
|
Yaw = yaw * (1F / 256) * 360; // to angle in 360 degree
|
||||||
Pitch = pitch * (1 / 256) * 360;
|
Pitch = pitch * (1F / 256) * 360;
|
||||||
ObjectData = objectData;
|
ObjectData = objectData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -151,8 +151,8 @@ namespace MinecraftClient.Mapping
|
||||||
Health = 1.0f;
|
Health = 1.0f;
|
||||||
Equipment = new Dictionary<int, Item>();
|
Equipment = new Dictionary<int, Item>();
|
||||||
Item = new Item(ItemType.Air, 0, null);
|
Item = new Item(ItemType.Air, 0, null);
|
||||||
Yaw = yaw * (1 / 256) * 360; // to angle in 360 degree
|
Yaw = yaw * (1F / 256) * 360; // to angle in 360 degree
|
||||||
Pitch = pitch * (1 / 256) * 360;
|
Pitch = pitch * (1F / 256) * 360;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetTypeString()
|
public string GetTypeString()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue