simplify
This commit is contained in:
parent
42eb86b624
commit
990107a1fa
@ -406,13 +406,9 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
|
|||||||
logDebug("no goal");
|
logDebug("no goal");
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
if (Baritone.settings().simplifyUnloadedYCoord.get()) {
|
if (Baritone.settings().simplifyUnloadedYCoord.get() && goal instanceof IGoalRenderPos) {
|
||||||
BlockPos pos = null;
|
BlockPos pos = ((IGoalRenderPos) goal).getGoalPos();
|
||||||
if (goal instanceof IGoalRenderPos) {
|
if (world().getChunk(pos) instanceof EmptyChunk) {
|
||||||
pos = ((IGoalRenderPos) goal).getGoalPos();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pos != null && world().getChunk(pos) instanceof EmptyChunk) {
|
|
||||||
logDebug("Simplifying " + goal.getClass() + " to GoalXZ due to distance");
|
logDebug("Simplifying " + goal.getClass() + " to GoalXZ due to distance");
|
||||||
goal = new GoalXZ(pos.getX(), pos.getZ());
|
goal = new GoalXZ(pos.getX(), pos.getZ());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user