mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 18:30:27 -04:00
1.12 build fix, Vec3d x,y,z and not xCoord,etc
This commit is contained in:
parent
90868bcb6b
commit
97ad5ebdaf
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user