This commit is contained in:
Leijurv
2019-01-22 17:25:53 -08:00
parent b75f4bf9a9
commit 314f280400
2 changed files with 17 additions and 0 deletions

View File

@@ -95,6 +95,12 @@ public final class LookBehavior extends Behavior implements ILookBehavior {
}
}
public void pig() {
if (this.target != null) {
ctx.player().rotationYaw = this.target.getYaw();
}
}
@Override
public void onPlayerRotationMove(RotationMoveEvent event) {
if (this.target != null && !this.force) {