1.12 build fix, Vec3d x,y,z and not xCoord,etc

This commit is contained in:
payonel 2017-12-10 04:06:57 -08:00
parent 90868bcb6b
commit 97ad5ebdaf

View File

@ -106,9 +106,9 @@ class MotionSensor(val host: EnvironmentHost) extends prefab.AbstractManagedEnvi
val target = new Vec3d(entity.posX, entity.posY, entity.posZ)
val path = origin.subtract(target).normalize()
origin = origin.addVector(
path.xCoord * 0.75,
path.yCoord * 0.75,
path.zCoord * 0.75
path.x * 0.75,
path.y * 0.75,
path.z * 0.75
)
world.rayTraceBlocks(origin, target) == null
}