Apply processor to RotationMoveEvent

This commit is contained in:
Brady 2023-06-21 17:39:04 -05:00
parent 7e426bd2e8
commit 0682e63707
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ public final class LookBehavior extends Behavior implements ILookBehavior {
@Override
public void onPlayerRotationMove(RotationMoveEvent event) {
if (this.target != null) {
final Rotation actual = this.target.rotation;
final Rotation actual = this.processor.nextRotation(this.target.rotation);
event.setYaw(actual.getYaw());
event.setPitch(actual.getPitch());
}