更准确地预测炮弹运动
This commit is contained in:
parent
c12ff91418
commit
082300754c
2 changed files with 2 additions and 6 deletions
|
@ -48,9 +48,6 @@ public abstract class FastThrowableProjectile extends ThrowableItemProjectile im
|
|||
// 重新应用重力
|
||||
this.applyGravity();
|
||||
|
||||
//
|
||||
System.out.println(this.getDeltaMovement());
|
||||
|
||||
// 同步动量
|
||||
this.syncMotion();
|
||||
}
|
||||
|
|
|
@ -17,9 +17,8 @@ public class ChunkLoadTool {
|
|||
var x = entity.position().x;
|
||||
var z = entity.position().z;
|
||||
|
||||
float f = entity.isInWater() ? 0.8F : 0.99F;
|
||||
var nextX = x + entity.getDeltaMovement().x * f;
|
||||
var nextZ = z + entity.getDeltaMovement().z * f;
|
||||
var nextX = x + entity.getDeltaMovement().x;
|
||||
var nextZ = z + entity.getDeltaMovement().z;
|
||||
|
||||
// 加载当前区块和下一tick会进入的区块
|
||||
var newChunks = new HashSet<Long>();
|
||||
|
|
Loading…
Add table
Reference in a new issue