修改checkNoClip坐标
This commit is contained in:
parent
1623994578
commit
8c95f7b9f6
1 changed files with 1 additions and 1 deletions
|
@ -1006,7 +1006,7 @@ public abstract class VehicleEntity extends Entity {
|
||||||
|
|
||||||
//判断载具和目标之间有无障碍物
|
//判断载具和目标之间有无障碍物
|
||||||
public boolean checkNoClip(Entity target, Vec3 pos) {
|
public boolean checkNoClip(Entity target, Vec3 pos) {
|
||||||
return level().clip(new ClipContext(this.getEyePosition(), target.getEyePosition(),
|
return level().clip(new ClipContext(pos, target.getEyePosition(),
|
||||||
ClipContext.Block.COLLIDER, ClipContext.Fluid.NONE, this)).getType() != HitResult.Type.BLOCK;
|
ClipContext.Block.COLLIDER, ClipContext.Fluid.NONE, this)).getType() != HitResult.Type.BLOCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue