forgot one

This commit is contained in:
Leijurv 2018-11-11 12:48:53 -08:00
parent 45e4239b26
commit 355443e440
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -474,7 +474,7 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
}
if (Baritone.settings().simplifyUnloadedYCoord.get() && goal instanceof IGoalRenderPos) {
BlockPos pos = ((IGoalRenderPos) goal).getGoalPos();
if (world().getChunk(pos) instanceof EmptyChunk) {
if (context.world().getChunk(pos) instanceof EmptyChunk) {
logDebug("Simplifying " + goal.getClass() + " to GoalXZ due to distance");
goal = new GoalXZ(pos.getX(), pos.getZ());
}