File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/baritone/process/elytra Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,9 @@ public void tick() {
164
164
this .ticksNearUnchanged = 0 ;
165
165
}
166
166
167
- if (ctx .player ().position ().y < context .maxHeight && ctx .player ().position ().y > 0 ) {
167
+ int minY = ctx .world ().dimensionType ().minY ();
168
+ int y = ctx .playerFeet ().y ;
169
+ if (y >= minY && y < minY + context .maxHeight ) {
168
170
// Obstacles are more important than an incomplete path, handle those first.
169
171
this .pathfindAroundObstacles ();
170
172
this .attemptNextSegment ();
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ public void queueBlockUpdate(BlockChangeEvent event) {
155
155
public CompletableFuture <UnpackedSegment > pathFindAsync (final BlockPos src , final BlockPos dst ) {
156
156
final BlockPos adjustedSrc = src .below (minY );
157
157
final BlockPos adjustedDst = dst .below (minY );
158
- boolean generate = Baritone .settings ().elytraPredictTerrain .value && this .dimension == Level .NETHER ;
158
+ boolean generate = Baritone .settings ().elytraPredictTerrain .value && this .dimension == Level .NETHER ;
159
159
Lock l = generate ? writeLock : readLock ;
160
160
ExecutorService exec = generate ? writeExecutor : readExecutor ;
161
161
return CompletableFuture .supplyAsync (() -> {
You can’t perform that action at this time.
0 commit comments