重写激光炮方法
This commit is contained in:
parent
63a0212d74
commit
6a5f7a0f2a
1 changed files with 9 additions and 0 deletions
|
@ -101,6 +101,15 @@ public class AnnihilatorEntity extends Entity implements GeoEntity, ICannonEntit
|
|||
}
|
||||
}
|
||||
|
||||
// TODO 修改乘客的位置
|
||||
@Override
|
||||
protected void positionRider(Entity pPassenger, MoveFunction pCallback) {
|
||||
if (this.hasPassenger(pPassenger)) {
|
||||
double d0 = this.getY() + this.getPassengersRidingOffset() + pPassenger.getMyRidingOffset();
|
||||
pCallback.accept(pPassenger, this.getX(), d0, this.getZ());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeCollidedWith() {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue