Fixed entity rotations (#2596)

* Fixed entity rotations

Fixed entity yaw and pitch not changing when entity moves head.

* Update ChatBot.cs

* Update McClient.cs

* Update Protocol18.cs

* Update McClient.cs

* Finalize code style

* Fix incorrect variable type

---------

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
This commit is contained in:
Domracz 2023-10-11 02:44:46 -04:00 committed by GitHub
parent c3fa413b4e
commit 1aea8d3a4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 85 additions and 3 deletions

View file

@ -195,6 +195,12 @@ namespace MinecraftClient.Scripting
/// <param name="entity">Entity with updated location</param>
public virtual void OnEntityMove(Entity entity) { }
/// <summary>
/// Called when an entity rotates
/// </summary>
/// <param name="entity">Entity with updated rotation</param>
public virtual void OnEntityRotate(Entity entity) { }
/// <summary>
/// Called after an internal MCC command has been performed
/// </summary>