Skip to content

Commit

Permalink
Move the Pike detection point down so they work with a block on top. F…
Browse files Browse the repository at this point in the history
…ixes #4845
  • Loading branch information
quat1024 committed Jul 12, 2024
1 parent 7d8ede8 commit fddcd11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void tick() {
}

public boolean isVisible(Entity entityIn) {
Vec3 vector3d = new Vec3(getX(), getY() + 1, getZ());
Vec3 vector3d = new Vec3(getX(), getEyeY(), getZ());
Vec3 vector3d1 = new Vec3(entityIn.getX(), entityIn.getEyeY(), entityIn.getZ());
return level().clip(new ClipContext(vector3d, vector3d1, ClipContext.Block.COLLIDER, ClipContext.Fluid.NONE, this)).getType() == HitResult.Type.MISS;
}
Expand Down

0 comments on commit fddcd11

Please sign in to comment.