优化子弹重力代码
This commit is contained in:
parent
6062f66624
commit
083f6bcdf2
1 changed files with 3 additions and 1 deletions
|
@ -243,7 +243,9 @@ public class ProjectileEntity extends Entity implements IEntityAdditionalSpawnDa
|
|||
this.setPosRaw(this.getX() + vec.x, this.getY() + vec.y, this.getZ() + vec.z);
|
||||
}
|
||||
|
||||
this.setDeltaMovement(new Vec3((this.getDeltaMovement().x()), (this.getDeltaMovement().y() - 0.1), (this.getDeltaMovement().z())));
|
||||
Vec3 vecp = this.getDeltaMovement();
|
||||
|
||||
this.setDeltaMovement(vecp.x, vecp.y - 0.1, vecp.z);
|
||||
|
||||
this.tickCount++;
|
||||
if (this.tickCount > 30) {
|
||||
|
|
Loading…
Add table
Reference in a new issue