cherry pick Allow freeLook when using elytra

This commit is contained in:
Brady
2023-06-14 16:11:11 -05:00
parent 6c8f2698d6
commit 367ce5fa17
5 changed files with 117 additions and 38 deletions

View File

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