NMS raytrace question

Discussion in 'Plugin Development' started by BorisTheTerrible, Mar 25, 2014.

Thread Status:
Not open for further replies.
  1. So I'm trying to see if a player can see a location using the NMS raytrace method like so.
    Code:java
    1. ((CraftWorld) loc1.getWorld()).getHandle().a(Vec3D.a(loc1.getX(), loc1.getY() + player.getEyeHeight(), loc1.getZ()), Vec3D.a(loc2.getX(), loc2.getY(), loc2.getZ())) == null;

    The only problem is that even transparent blocks can block the raytrace.
    So I was wondering is there a way around this?
     
Thread Status:
Not open for further replies.

Share This Page