尝试修复载具乘坐问题#2
This commit is contained in:
parent
409504ac6d
commit
4611d7168e
1 changed files with 0 additions and 4 deletions
|
@ -118,8 +118,6 @@ public class VehicleEntity extends Entity {
|
||||||
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
|
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
|
||||||
}
|
}
|
||||||
if (this.getPassengers().size() < this.getMaxPassengers()) {
|
if (this.getPassengers().size() < this.getMaxPassengers()) {
|
||||||
player.setXRot(this.getXRot());
|
|
||||||
player.setYRot(this.getYRot());
|
|
||||||
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
|
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;
|
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
|
||||||
}
|
}
|
||||||
if (this.getPassengers().size() < this.getMaxPassengers()) {
|
if (this.getPassengers().size() < this.getMaxPassengers()) {
|
||||||
player.setXRot(this.getXRot());
|
|
||||||
player.setYRot(this.getYRot());
|
|
||||||
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
|
return player.startRiding(this) ? InteractionResult.CONSUME : InteractionResult.PASS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue