@@ -129,7 +129,7 @@ public CompletableFuture<PathSegment> pathFindAsync(final BlockPos src, final Bl
129
129
*/
130
130
public boolean raytrace (final double startX , final double startY , final double startZ ,
131
131
final double endX , final double endY , final double endZ ) {
132
- return NetherPathfinder .isVisible (this .context , true , startX , startY , startZ , endX , endY , endZ );
132
+ return NetherPathfinder .isVisible (this .context , NetherPathfinder . CACHE_MISS_SOLID , startX , startY , startZ , endX , endY , endZ );
133
133
}
134
134
135
135
/**
@@ -141,24 +141,24 @@ public boolean raytrace(final double startX, final double startY, final double s
141
141
* @return {@code true} if there is visibility between the points
142
142
*/
143
143
public boolean raytrace (final Vec3d start , final Vec3d end ) {
144
- return NetherPathfinder .isVisible (this .context , true , start .x , start .y , start .z , end .x , end .y , end .z );
144
+ return NetherPathfinder .isVisible (this .context , NetherPathfinder . CACHE_MISS_SOLID , start .x , start .y , start .z , end .x , end .y , end .z );
145
145
}
146
146
147
147
public boolean raytrace (final int count , final double [] src , final double [] dst , final int visibility ) {
148
148
switch (visibility ) {
149
149
case Visibility .ALL :
150
- return NetherPathfinder .isVisibleMulti (this .context , true , count , src , dst , false ) == -1 ;
150
+ return NetherPathfinder .isVisibleMulti (this .context , NetherPathfinder . CACHE_MISS_SOLID , count , src , dst , false ) == -1 ;
151
151
case Visibility .NONE :
152
- return NetherPathfinder .isVisibleMulti (this .context , true , count , src , dst , true ) == -1 ;
152
+ return NetherPathfinder .isVisibleMulti (this .context , NetherPathfinder . CACHE_MISS_SOLID , count , src , dst , true ) == -1 ;
153
153
case Visibility .ANY :
154
- return NetherPathfinder .isVisibleMulti (this .context , true , count , src , dst , true ) != -1 ;
154
+ return NetherPathfinder .isVisibleMulti (this .context , NetherPathfinder . CACHE_MISS_SOLID , count , src , dst , true ) != -1 ;
155
155
default :
156
156
throw new IllegalArgumentException ("lol" );
157
157
}
158
158
}
159
159
160
160
public void raytrace (final int count , final double [] src , final double [] dst , final boolean [] hitsOut , final double [] hitPosOut ) {
161
- NetherPathfinder .raytrace (this .context , true , count , src , dst , hitsOut , hitPosOut );
161
+ NetherPathfinder .raytrace (this .context , NetherPathfinder . CACHE_MISS_SOLID , count , src , dst , hitsOut , hitPosOut );
162
162
}
163
163
164
164
public void cancel () {
0 commit comments