Apply processor to RotationMoveEvent

This commit is contained in:
Brady
2023-06-21 17:39:04 -05:00
parent 7e426bd2e8
commit 0682e63707

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());
}