disconnect on arrival

This commit is contained in:
Leijurv
2019-03-06 22:44:57 -08:00
parent 74d7483b3c
commit d80ae57964
2 changed files with 8 additions and 0 deletions

View File

@@ -141,6 +141,9 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
logDebug("All done. At " + goal);
queuePathEvent(PathEvent.AT_GOAL);
next = null;
if (Baritone.settings().disconnectOnArrival.value) {
ctx.world().sendQuittingDisconnectingPacket();
}
return;
}
if (next != null && !next.getPath().positions().contains(ctx.playerFeet()) && !next.getPath().positions().contains(expectedSegmentStart)) { // can contain either one