don't splice if not on ground

This commit is contained in:
Leijurv
2018-12-01 10:49:14 -08:00
parent 07ce0a47f7
commit 57a3330200

View File

@@ -349,6 +349,9 @@ public class PathExecutor implements IPathExecutor, Helper {
* Regardless of current path position, snap to the current player feet if possible
*/
public boolean snipsnapifpossible() {
if (!ctx.player().onGround) {
return false;
}
int index = path.positions().indexOf(ctx.playerFeet());
if (index == -1) {
return false;