尝试修复载具乘坐问题#2

This commit is contained in:
17146 2025-01-03 21:27:58 +08:00
parent 409504ac6d
commit 4611d7168e

View file

@ -118,8 +118,6 @@ public class VehicleEntity extends Entity {
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
}
if (this.getPassengers().size() < this.getMaxPassengers()) {
player.setXRot(this.getXRot());
player.setYRot(this.getYRot());
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
}
}
@ -135,8 +133,6 @@ public class VehicleEntity extends Entity {
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
}
if (this.getPassengers().size() < this.getMaxPassengers()) {
player.setXRot(this.getXRot());
player.setYRot(this.getYRot());
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
}
}